leaspy.io.data.abstract_dataframe_data_reader#
Classes#
Methods to convert |
Module Contents#
- class AbstractDataframeDataReader#
Methods to convert
pandas.DataFrameto Leaspy-compliant data containers.- Raises:
- time_rounding_digits = 6#
- individuals: dict[leaspy.utils.typing.IDType, IndividualData]#
- read(df, *, drop_full_nan=True, sort_index=False, warn_empty_column=True)#
The method that effectively reads the input dataframe (automatically called in __init__).
- Parameters:
- df
pandas.DataFrame The dataframe to read.
- drop_full_nanbool
Should we drop rows full of nans? (except index)
- sort_indexbool
Should we lexsort index? (Keep False as default so not to break many of the downstream tests that check order…)
- warn_empty_columnbool
Should we warn when there are empty columns?
- df
- Parameters:
- Return type:
None