Pandas学习笔记(5) Data Types and Missing Values
1.理论部分
1.用dtype函数查看数据类型
reviews.price.dtype
dtype('float64')
reviews.dtypes
country object
description object
...
variety object
winery object
Length: 13, dtype: object
2.用astype函数更换数据类型
reviews.points.astype('float64')
0 87.0
1 87.0
...
129969 90.0
129970 90.0
Name: points, Length: 129971, dtype: float64
3.通过isnull函数查找
共有 0 条评论