You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Load the CSV file and remove duplicate entries in column 'F'
Attempt to load the CSV file, trying different encodings if necessary
try:
# Trying with default encoding first
danmu_df = pd.read_csv('/mnt/data/纪录片弹幕.csv')
except UnicodeDecodeError:
# If default encoding fails, trying with 'gbk' encoding which is commonly used for Chinese text
danmu_df = pd.read_csv('/mnt/data/纪录片弹幕.csv', encoding='gbk')
Remove duplicates in column 'F' and keep the first occurrence
纪录片弹幕.csv
分析F列的中文,将重复的文字进行删除
The text was updated successfully, but these errors were encountered: