Replace the DataTable’s dataframe with a new dataframe, making sure the new dataframe dtypes are updated.
If the original DataTable was created with make_index=True, an index column will be added to the updated
data if it is not present.
new_df (DataFrame) – Dataframe containing the new data. The same columns present in the original data should
also be present in the new dataframe.
already_sorted (bool, optional) – Indicates whether the input dataframe is already sorted on the time
index. If False, will sort the dataframe first on the time_index and then on the index (pandas DataFrame
only). Defaults to False.