jade.utils.dataframe_utils.read_dataframe

jade.utils.dataframe_utils.read_dataframe(filename, index_col=None, columns=None, parse_dates=False, **kwargs)[source]

Convert filename to a dataframe. Supports .csv, .json, .feather. Handles compressed files.

Parameters:
  • filename (str)

  • index_col (str | int | None) – Index column name or index

  • columns (list or None) – Use these columns if the file is CSV and does not define them.

  • parse_dates (bool)

  • kwargs (kwargs) – Passed to underlying library for dataframe conversion. Consider setting parse_dates=True if the index is a timestamp.

Return type:

pd.DataFrame

Raises:

FileNotFoundError – Raised if the file does not exist.