Reputation: 4897
Is it possible to reset a dataframe dtypes to default or auto detected ones (e.g., to detect and match strings and numbers) after they have been set manually? If so how?
Upvotes: 0
Views: 3156
Reputation: 375685
A possibility is to use convert_objects
:
Attempt to infer better dtype for object columns
This will work well e.g. if you've made it of object dtype, but this certainly isn't a magic bullet.
Upvotes: 1