数据第一眼

版权声明:欢迎分享和转载,请注明出处 shuihupo:https://blog.csdn.net/shuihupo.同时,本博客部分会在云南省高校数据化运营管理工程中心博客同步。欢迎沟通交流:[email protected] https://blog.csdn.net/shuihupo/article/details/82689209
data.info()

查看数据类型,数据多少,是否有NULL

class 'pandas.core.frame.DataFrame'>

Int64Index: 612644 entries, 0 to 612651

Data columns (total 27 columns):

service_type              612644 non-null int64

is_mix_service            612644 non-null int64

online_time               612644 non-null int64

1_total_fee               612644 non-null float64

2_total_fee               612644 non-null float64
gender = data['gender']
print('gender:{}'.format(set(gender)))

数据一列中的唯一值

猜你喜欢

转载自blog.csdn.net/shuihupo/article/details/82689209