MultiIndex_to_datetime
- postprocessinglib.utilities._helper_functions.MultiIndex_to_datetime(index: tuple) str
Convert the MultiIndex value to a datetime value for use in the dataframe
- Parameters:
index (tuple[int, int]) – an index representig the year and jday index of the dataframe
- Returns:
a string of the date in the format “yyyy-mm-dd”
- Return type:
str
Example
>>> # Convert the follwing multiindex values to datetime values: (2020, 1), (1995, 365), (2000, 60) >>> from postprocessinglib.utilities import _helper_functions >>> _helper_functions.MultiIndex_to_datetime((2020, 1)) "2020-01-01" >>> _helper_functions.MultiIndex_to_datetime((1995, 365)) "1995-12-31" >>> _helper_functions.MultiIndex_to_datetime((2000, 60)) "2000-02-29"