odtlearn.utils.binarize
#
Module Contents#
Functions#
|
|
- odtlearn.utils.binarize.binarize(df, categorical_cols, integer_cols)[source]#
- Parameters:
- df: pandas dataframe
A dataframe with only categorical/integer columns. There should not be any NA values.
- categorical_cols: list
a list consisting of the names of categorical columns of df
- integer_cols: list
a list consisting of the names of integer columns of df