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 above Notebook from here.
Previous: Dataframe Home
Next: DataFrame - select_dtypes() function
- New Content published on w3resource:
- Scala Programming Exercises, Practice, Solution
- Python Itertools exercises
- Python Numpy exercises
- Python GeoPy Package exercises
- Python Pandas exercises
- Python nltk exercises
- Python BeautifulSoup exercises
- Form Template
- Composer - PHP Package Manager
- PHPUnit - PHP Testing
- Laravel - PHP Framework
- Angular - JavaScript Framework
- React - JavaScript Library
- Vue - JavaScript Framework
- Jest - JavaScript Testing Framework