代码是下面这样的,不知道为啥不行
import numpy as np
from matplotlib import pyplot as plt
df1=pd.read_excel("C:/Users/86139/Desktop/言情总分榜.xlsx")
df2=pd.read_excel("C:/Users/86139/Desktop/完结高分榜.xlsx")
df3=pd.read_excel("C:/Users/86139/Desktop/完结全订榜.xlsx")
#统计分类列表
temp_list=df1["类型"].str.split("-").tolist()
类型_list=list(set([i for j in temp_list for i in j]))
#构造全为0的数组
zeros_df1=pd.DateFrame(np.zeros((df1.shape[0],len("类型_list"))),columns=类型_list)
print(zeros_df1)