- Jupyter 中数据帧的column数据转换报错:cannot
- element ui数据转换,比如后端返回的1代表男,2代表女,
- 【2020-06-25】在数据库中创建表时,保存时报错1166
- 打卡第12天:《利用python进行数据分析》学习笔记
- 打卡第13天:《利用python进行数据分析》学习笔记
- python对某列进行变换时出现ValueError: cann
- Jupyter中使用pandas链接Mysql报错解决:No m
- 2018-02-05 1548 cannot load fro
- Instant Client package is requir
- pyspark工具机器学习(自然语言处理和推荐系统)2数据处理2
![](https://img.haomeiwen.com/i14058594/ea6292cc53091653.png)
查看空值的len:
import numpy as np
sales_customer_order_11[sales_customer_order_11['birth_year'].isin([np.NaN])]
数量并不多,直接筛选掉即可:
sales_customer_order_11['birth_year'] = sales_customer_order_11[~sales_customer_order_11['birth_year'].\
isin([np.NaN])]['birth_year'].astype('int')
网友评论