This code snippet provide examples of checking column data types in a DataFrame using dtype
and dtypes
.
Sample output:
>>> print(df.dtypes)
a int64
b object
dtype: object
>>> print(df.a.dtype)
int64
This code snippet provide examples of checking column data types in a DataFrame using dtype
and dtypes
.
Sample output:
>>> print(df.dtypes)
a int64
b object
dtype: object
>>> print(df.a.dtype)
int64