即使出现正确的代码,也会显示TypeError消息

时间:2019-05-24 10:44:13

标签: python-3.x module typeerror

这是我的代码:

corrmat = data.corr()
fig = plt.figure(figsize = (12, 9))

sns.heatmap(corrmat, vmax = .8, square = True)
plt.show()

显示错误:

TypeError                                 Traceback (most recent call last)
<ipython-input-34-58010cc53b83> in <module>
      1 # Correlation matrix
      2 corrmat = data.corr()
----> 3 fig = plt.figure(figsize = (12, 9))
      4 
      5 sns.heatmap(corrmat, vmax = .8, square = True)

TypeError: 'module' object is not callable

​

0 个答案:

没有答案