Has*_*tax 4 python numpy pandas dtype
Float32与float32?
Pandas 中大写和小写 dtypes 的目的是什么?
大写似乎更容易出错:TypeError: object cannot be converted to a FloatingDtype.
dtype = {
'doom_float64': 'Float64'
, 'radiance_float32': 'Float32'
, 'temperature_float': 'float'
, 'moonday_int64': 'Int64'
, 'month_int32': 'Int32'
, 'color_uint8': 'UInt8'
, 'shape_int': 'int'
, 'weekday_object': 'object'
, 'hour_object': 'string'
, 'kingdom_category': 'category'
}
Run Code Online (Sandbox Code Playgroud)
>>> df.dtypes
doom_float64 Float64
radiance_float32 Float32
temperature_float float64
weekday_object object
hour_object string
moonday_int64 Int64
month_int32 Int32
color_uint8 UInt8
shape_int int64
kingdom_category category
dtype: object
Run Code Online (Sandbox Code Playgroud)
Pandas v1.2.0