chevron_left
Properties
check_circle
Mark as learned thumb_up
0
thumb_down
0
chat_bubble_outline
0
auto_stories new
settings
Pandas DataFrame | dtypes property
Pandas
chevron_rightDocumentation
chevron_rightDataFrame
chevron_rightProperties
schedule Jul 1, 2022
Last updated local_offer Python●Pandas
Tags tocTable of Contents
expand_more Check out the interactive map of data science
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?
thumb_up
thumb_down
Ask a question or leave a feedback...
Official Pandas Documentation
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.dtypes.html
thumb_up
0
thumb_down
0
chat_bubble_outline
0
settings
Enjoy our search
Hit / to insta-search docs and recipes!