-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Labels
enhancementNew feature or an improvement of an existing featureNew feature or an improvement of an existing feature
Description
Description
It will be great to have pandas' df.convert_dtypes() that cast columns to the best possible dtypes.
https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.convert_dtypes.html
This will convert, for example, all float columns that are actually integers like [1.0, 2.0, 3.0] to [1, 2, 3].
This could be a option in shrink_to_fit()
lmocsi and leoliu0
Metadata
Metadata
Assignees
Labels
enhancementNew feature or an improvement of an existing featureNew feature or an improvement of an existing feature