Why I downloaded on UCI irises after import Excel spreadsheet data sets with seaborn kdeplot painting bivariate kernel density estimation pictures don't come out only blank grid and if it's loaded with seaborn iris data set can draw the double variables under the same code kernel density estimate figure?
My code is as follows:
Df=pd read_excel (' iris data. XLSX)
# remove all for setosa irises
Setosa=df. Loc [df species=="setosa"]
# remove all for versicolor irises
Versicolor=df. Loc [df species=="versicolor"]
# remove all for virginica irises
Virginica=df. Loc [df species=="virginica"]
# drawing setosa and virginica respectively two kinds of irises in calyx width, calyx length of two dimensions KDE visualization
Ax=SNS. Kdeplot (setosa. Sepal_width, setosa sepal_length, cmap="Reds", shade=True, shade_lowest=False)
This picture only out grid has no image, but if the change to the following code is to draw the image:
Iris=SNS. Load_dataset (" iris ")
# remove all for setosa irises
Setosa=iris. Loc [iris species=="setosa"]
# remove all for versicolor irises
Versicolor=iris. Loc [iris species=="versicolor"]
# remove all for virginica irises
Virginica=iris. Loc [iris species=="virginica"]
Is anyone know why this is, please?