Open jake-westfall opened 6 years ago
Takes in a DataFrame, outputs the same DataFrame with all ints and floats safely downcasted, and with all objects converted to categoricals iff nunique < len/2.
Also have parameters:
Takes in a DataFrame, outputs the same DataFrame with all ints and floats safely downcasted, and with all objects converted to categoricals iff nunique < len/2.