python - 错误:plt.hist(df1.Score A),Python Pandas/Seaborn
问题描述
我的代码:
plt.hist(df1.Score A)
File "<ipython-input-14-dff3e3378235>", line 2
plt.hist(df1.Score A)
^
SyntaxError: invalid syntax
该代码导致上述错误。你能建议如何解决这个问题吗?我认为由于 Column Name : "Score A"中有一个“空格” ,所以它给出了一个错误。
解决方案
用这个:
plt.hist(df1['Score A'])
推荐阅读
- javascript - Minimist js库不返回键值对
- c# - 从套接字读取数据时出现问题
- python - Python - Django [找不到错误 404 页面 url]
- python - Pygame libpng 警告
- python - 如何在 sql 中确定用户是否可以在 la unix 权限系统中读取/写入/执行文件?
- javascript - bootstrap-select 动态切换多个属性
- laravel - Laravel 5.7 验证规则
- eclipse - Eclipse 中不可解析的父 POM
- php - PHP 不允许上传音频文件(wav、mp3 等)
- ruby-on-rails - 我的 erd.pdf 是乱码。我想解决这个问题