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)))
数据一列中的唯一值