Code python

Check Column Data Types in a Pandas DataFrame

Kontext Kontext visibility 98 comment 0 access_time 2 years ago language English

descriptionCode description

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)
copyright This page is subject to Site terms.
comment Comments
No comments yet.

Please log in or register to comment.

account_circle Log in person_add Register

Log in with external accounts