leaspy.io.data.dataframe_data_reader module
- class DataframeDataReader(df: DataFrame, *, drop_full_nan: bool = True, sort_index: bool = False, warn_empty_column: bool = True)
Bases:
object
Methods to convert
pandas.DataFrame
to Leaspy-compliant data containers.- Parameters:
- df
pandas.DataFrame
The dataframe to read.
- drop_full_nanbool, default True
Should we drop rows full of nans? (except index)
- sort_indexbool, default False
Should we lexsort index? (Keep False as default so not to break many of the downstream tests that check order…)
- warn_empty_columnbool, default True
Should we warn when there are empty columns? (It may be redundant when the user already knows it - for instance in ablation studies)
- df
- Raises:
- Attributes:
dimension
Number of features in dataset.
- property dimension
Number of features in dataset.
- time_rounding_digits = 6