3

親愛なる私は、kaggle チュートリアル コードを Iris データセットに適用しようとしています。

残念ながら、グラフのコードを実行すると、グラフが表示されずにこの出力しか表示されません。

matplotlib.axes._subplots.AxesSubplot at 0x9abf9b0

何か案が?

これがコードです

import warnings # current version of seaborn generates a bunch of warnings that we'll ignore
warnings.filterwarnings("ignore")
import seaborn as sns
import matplotlib.pyplot as plt
sns.set(style="white", color_codes=True)

# Next, we'll load the Iris flower dataset, which is in the "../input/" directory
iris = pd.read_csv("../input/Iris.csv") # the iris dataset is now a Pandas DataFrame

# We'll use this to make a scatterplot of the Iris features.
iris.plot(kind="scatter", x="SepalLengthCm", y="SepalWidthCm")
4

1 に答える 1

0

IPython Notebook を使用している場合は%pylab inline、プロットを作成する前にコマンドを使用するだけです。そうでない場合は、plt.show()プロットを作成した後に試してください。

于 2016-04-06T15:04:00.690 に答える