あやめのデータを利用して散布図を描きたいのですが、以下のようなエラーが発生してしまいます。
python
1%matplotlib inline 2import pandas as pd 3import matplotlib.pyplot as plt
python
1plt.style.use('ggplot') 2df_iris = pd.read_csv('https://raw.github.com/pydata/pandas/master/pandas/tests/data/iris.csv')
python
1df_iris.query("Name == 'Iris-setosa'").plot. 2scatter(x='SepalLength', y='SepalWidth', color='Red')
File "<ipython-input-17-8984a4302f73>", line 1 df_iris.query("Name == 'Iris-setosa'").plot. ^ SyntaxError: invalid syntax
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/05/10 09:26