Skip to content Skip to sidebar Skip to footer

All Pandas Data Types

I am trying to write a function that will subset a pandas dataframe based on the data type; essentially I am trying to split on numerical and non-numerical columns. I have gotten

Solution 1:

Pandas uses datetime64, timedelta64, int64, float64, bool and object (this includes strings and any other custom objects). You can use other types such as float32, and pandas will try to maintain it, but some operations will implicitly cast to e.g., float64.


Post a Comment for "All Pandas Data Types"