3.3. cpforager.parameters.get_columns_dtypes
- cpforager.parameters.get_columns_dtypes(column_names)
Extract a dtype dictionary by dataframe column names.
- Parameters:
column_names (list[str]) – list of column names.
- Returns:
a dictionary of dtypes by column names.
- Return type:
dict
The dtypes must be compatible with a dataframe containing NaN values, i.e
Int64
andFloat64
instead ofint64
andfloat64
. The full dictionary among which to extract the dictionary is hard-coded.