查看空值的len:
import numpy as np
sales_customer_order_11[sales_customer_order_11['birth_year'].isin([np.NaN])]
數(shù)量并不多匪补,直接篩選掉即可:
sales_customer_order_11['birth_year'] = sales_customer_order_11[~sales_customer_order_11['birth_year'].\
isin([np.NaN])]['birth_year'].astype('int')