📜  删除重复 pandas 第一列 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:59.736000             🧑  作者: Mango

代码示例1
import pandas as pd 
  
# making data frame from csv file 
data = pd.read_csv("employees.csv") 
  
# sorting by first name 
data.sort_values("First Name", inplace = True) 
  
# dropping ALL duplicte values 
data.drop_duplicates(subset ="First Name",keep = False, inplace = True) 
  
# displaying data 
print(data)