clean_time_series_data#

API documentation for tradingstrategy.binance.downloader.clean_time_series_data Python function.

clean_time_series_data(df)[source]#

Unused for now since data from Binance data occasionally has gaps. Not a huge deal.

Cleans time series data to ensure: - No Nan values - Index contains no duplicates - Has equally spaced intervals with no gaps - Sorted index in ascending order by datetime

Parameters:

df (pandas.core.frame.DataFrame | pandas.core.series.Series) – Pandas dataframe or series

Returns:

Cleaned dataframe or series

Return type:

pandas.core.frame.DataFrame | pandas.core.series.Series