pandas.DataFrame.dtypes#
- property DataFrame.dtypes[source]#
- Return 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 - objectdtype. See the User Guide for more.- Returns:
- pandas.Series
- The data type of each column. 
 
 - See also - Series.dtypes
- Return the dtype object of the underlying data. 
 - Examples - >>> df = pd.DataFrame( ... { ... "float": [1.0], ... "int": [1], ... "datetime": [pd.Timestamp("20180310")], ... "string": ["foo"], ... } ... ) >>> df.dtypes float float64 int int64 datetime datetime64[s] string str dtype: object