import pandas as pd
df_csv = pd.read_csv('yourfile.csv')
2。删除南行
df_csv.dropna(axis = 0, how = 'any', inplace = True)
# axis = 1 will drop the column instead of the row
# how = 'all' will only drop if all cells are NaN
三。保存到CSV
df_csv.to_csv('yourfile_parsed.csv', index = False)