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
It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.
https://w3resource.com/pandas/dataframe/dataframe-dtypes.php
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics