dsipts.data_management.monash module¶
- dsipts.data_management.monash.convert_tsf_to_dataframe(full_file_path_and_name, replace_missing_vals_with='NaN', value_column_name='series_value')[source]¶
I copied this function from the repo
- Parameters:
- Raises:
Exception – see https://forecastingdata.org/ for more information
- Returns:
the selected timserie
- Return type:
pd.DataFrame
- dsipts.data_management.monash.get_freq(freq)[source]¶
Get the frequency based on the string reported. I don’t think there are all the possibilities here
- class dsipts.data_management.monash.Monash(filename, baseUrl='https://forecastingdata.org/', rebuild=False)[source]¶
Bases:
objectClass for downloading datasets listed here https://forecastingdata.org/
- Parameters:
filename (str) – name of the class, used for saving
baseUrl (str, optional) – url to the source page. Defaults to ‘https://forecastingdata.org/’.
rebuild (bool, optional) – if true the table will be loaded from the webpage otherwise it will be loaded from the saved file. Defaults to False.
- __init__(filename, baseUrl='https://forecastingdata.org/', rebuild=False)[source]¶
Class for downloading datasets listed here https://forecastingdata.org/
- Parameters:
filename (str) – name of the class, used for saving
baseUrl (str, optional) – url to the source page. Defaults to ‘https://forecastingdata.org/’.
rebuild (bool, optional) – if true the table will be loaded from the webpage otherwise it will be loaded from the saved file. Defaults to False.
- save(filename)[source]¶
Save the monarch structure
- Parameters:
filename (str) – name of the file to generate