2.2. cpforager.parameters.get_columns_dtypes

cpforager.parameters.get_columns_dtypes(column_names)

Extract a dtype dictionary by dataframe column names.

Parameters:

column_names (list) – 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, i.e Int64 and Float64 instead of int64 and float64. The full dictionary among which to extract the dictionary is hard-coded.