src/core/common/environment.py
def read_index(value_file: Path) -> pd.DataFrame:
            """Function applicable to time-series in Pandas."""
            time_series = pd.read_csv(value_file, sep="\t")
            if time_series.isnull().values.any():
                msg = f"NaNs detected in time series {value_file}"
                raise ValueError(msg)
            time_series["date"] = pd.to_datetime(time_series["date"])
            time_series.set_index("date", inplace=True)
            return time_series
Function applicable to time-series in Pandas.
Function applicable to time-series in Pandas.
Function applicable to time - series in Pandas .
def read_index(value_file: Path) -> pd.DataFrame:
            time_series = pd.read_csv(value_file, sep="\t")
            if time_series.isnull().values.any():
                msg = f"NaNs detected in time series {value_file}"
                raise ValueError(msg)
            time_series["date"] = pd.to_datetime(time_series["date"])
            time_series.set_index("date", inplace=True)
            return time_series
def read_index ( value_file : Path ) -> pd . DataFrame : time_series = pd . read_csv ( value_file , sep = "\t" ) if time_series . isnull ( ) . values . any ( ) : msg = f"NaNs detected in time series {value_file}" raise ValueError ( msg ) time_series [ "date" ] = pd . to_datetime ( time_series [ "date" ] ) time_series . set_index ( "date" , inplace = True ) return time_series
Function applicable to time-series in Pandas.
Function applicable to time - series in Pandas .
"""Function applicable to time-series in Pandas."""
value_file
Path