python 用Jupyter Notebook数据清洗

对dataframe进行数据清洗

如果清洗新的数据对象,原对象不变
jupyter notebook原对象会因为数据太多,中间被省略,不方便清洗

问题相关代码

import pandas as pd
import pandas as np
df=pd.read_excel('//users//yifentianpin//desktop//data//DataScience.xls')
df
mask=df.isnull().any(axis=1)
pre=df[mask]
pre.to_csv('//users//yifentianpin//desktop//python//pre.csv')
pre
pre.dropna(thresh=10,inplace=True)
pre.drop_duplicates(inplace=True)
pre
pre.fillna({'节次':'7~9','实验类型':'验证型','课程名称':'数据结构'},inplace=True)
pre

运行结果及报错内容
我的解答思路和尝试过的方法

清洗原数据,但是用isnull().any()的时候会报错,大概是只需要一个对象但是我输了两个

我想要达到的结果

img