chevron_left
Properties
0
0
0
new
Pandas DataFrame | dtypes property
Programming
chevron_rightPython
chevron_rightPandas
chevron_rightDocumentation
chevron_rightDataFrame
chevron_rightProperties
schedule Mar 10, 2022
Last updated Python●Pandas
Tags tocTable of Contents
expand_more Pandas DataFrame.dtypes
property returns the data type of the values stored in each column.
Return Value
A Pandas Series
holding the data type of each column.
Examples
Consider the following DataFrame:
The data type of each column is as follows:
df.dtypes
A float64B int64C datetime64[ns]D objectE objectdtype: object
Notice how strings and lists have object
as their data type.
Published by Isshin Inada
Edited by 0 others
Did you find this page useful?
Ask a question or leave a feedback...
Official Pandas Documentation
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.dtypes.html