python 删除列表缺失值、删除重复行并不保留唯一值

import pandas as pd
import re

f1=pd.read_excel('01.xlsx')

f1.dropna()    #去除含有缺失值的一行

f1.drop_duplicates(subset=['A'],keep=False)

del f1['B']   #删除某一列

猜你喜欢

转载自blog.csdn.net/weixin_42342968/article/details/83509084