df = pd.DataFrame( {"wing" : [12, 10, 13, 10, 13, 12, 15, 12], "body" : [15, 20, 23, 27, 30, 36, 39, 42], "type" : [0, 0, 0, 0, 1, 1, 1, 1] }) df.head() import matplotlib.pyplot as plt plt.scatter(df.loc[:, 'wing'], df.loc[:, 'body'], c=df.loc[:, 'type'], cmap=plt.cm.cool) plt.legend() plt.show()
ここでplt.scatter(df.loc[:, 'wing'], df.loc[:, 'body'], c=df.loc[:, 'type'], の:,はなにをいみしているのでしょうか?
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。