python绘图-索引字符串已断开

python绘图-索引字符串已断开,python,pandas,jupyter-notebook,Python,Pandas,Jupyter Notebook,当我用python绘制图形时,列字符串在jupyter中被破坏 lambdalist = [600, 300, 150, 75, 37.5, 18.75, 9.375, 4.6875]#, 2.34375, 1.171875] data = np.array(w_check[3].tolist() + w_check[13].tolist()+ w_check[39].tolist()+ w_check[45].tolist()+ w_check[66].tolist()).T.tolist()

当我用python绘制图形时,列字符串在jupyter中被破坏

lambdalist = [600, 300, 150, 75, 37.5, 18.75, 9.375, 4.6875]#, 2.34375, 1.171875]
data = np.array(w_check[3].tolist() + w_check[13].tolist()+ w_check[39].tolist()+ w_check[45].tolist()+ w_check[66].tolist()).T.tolist()

wchanges = pd.DataFrame(data, index=lambdalist, columns=['Your column names contain monospace letters. If this is intentional, you may want to change the matplotlib font family to monospace:

matplotlib.rcParams['font.family'] = 'monospace'
lambdalist=[600,300,150,75,37.5,18.75,9.375,4.6875]#,2.34375,1.171875]
data=np.array(w_check[3]。tolist()+w_check[13]。tolist()+w_check[39]。tolist()+w_check[45]。tolist()+w_check[66]。tolist()).T.tolist()

wchanges=pd.DataFrame(data,index=lambdalist,columns=['您的列名包含单空格字母。如果有意这样做,您可能希望将matplotlib字体系列更改为单空格:


列名包含单空格字母。如果有意这样做,可能需要将matplotlib字体系列更改为单空格: