Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Ctrl+K

pandas.DataFrame.dtypes#

propertyDataFrame.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. Columnswith mixed types are stored with theobject dtype. Seethe User Guide for more.

Returns:
pandas.Series

The data type of each column.

Examples

>>>df=pd.DataFrame({'float':[1.0],...'int':[1],...'datetime':[pd.Timestamp('20180310')],...'string':['foo']})>>>df.dtypesfloat              float64int                  int64datetime    datetime64[ns]string              objectdtype: object

[8]ページ先頭

©2009-2025 Movatter.jp