我正在尝试添加坐标轴标签,但由于语法错误,它们无法显示。这是我的代码。
file = 'SAW data omgekeerd goed.csv'
data = pd.read_csv(file, sep = ';', parse_dates= True, index_col = 0, dayfirst = True)
plt.plot(data['0.005 (B4.01) Studielandschap'])
plt.xlabel('Month')
plt.ylabel('Value')
plt.show()
文件"C:/Users/steven/Documents/BIM/Minor Data Science/Outlier detection SAW/Anomaly detection 0.1.py",第24行,plt.xlabel('Month'),出现错误:TypeError: 'str' object is not callable。
plt.xlabel('Month')'
之后有一个撇号。这可能是原因,所以我已经把它放回去,直到 OP 澄清。 - DavidG