Pandas DataFrame property: dtypes
DataFrame - dtypes property
The dtypes property is used to find the dtypes in the DataFrame.
This returns a Series with the data type of each column. The result’s index is the original DataFrame’s columns. Columns with mixed types are stored with the object dtype.
Syntax:
DataFrame.dtypes
Returns: pandas.Series
The data type of each column.
Example:
Download the Pandas DataFrame Notebooks from here.
Previous: Dataframe Home
Next: DataFrame - select_dtypes() function
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics