import pandas as pd
df_input = pd.read_excel('./shanghai.xlsx')
df_input
#输出:
全不行:
#df_input = pd.read_csv('./shanghai.csv', encoding='utf-8')
#df_input = pd.read_csv('./shanghai.csv', encoding="gb18030",errors="ignore")
有编码问题错误。
import pandas as pd
df_input = pd.read_excel('./shanghai.xlsx')
df_input
#输出:
全不行:
#df_input = pd.read_csv('./shanghai.csv', encoding='utf-8')
#df_input = pd.read_csv('./shanghai.csv', encoding="gb18030",errors="ignore")
有编码问题错误。