You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
228 B

import pandas as pd
# 加载CSV文件
data = pd.read_csv('抖音评论.csv')
# 删除重复行
data_cleaned = data.drop_duplicates()
# 保存清理后的数据到新文件
data_cleaned.to_csv('抖音评论.csv', index=False)