from io import StringIO
import pandas as pd
# create a csv_data
csv_data = \
'''A,B,C,D
1.0,2.0,3.0,4.0
5.0,6.0,,8.0
9.0,10.0,11.0,'''
# read the data and show the end 5 rows then show the null columns
df = pd.read_csv(StringIO(csv_data))
print(df.tail
机器学习 寻找NaN数据,以及均值插补的方法
最新推荐文章于 2024-04-28 14:19:29 发布