12 lines
634 B
Python
12 lines
634 B
Python
import pandas as pd
|
|
from plotly import express as px
|
|
|
|
data = pd.read_csv("https://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data", header=None,
|
|
names=["sepal-length", "sepal-width", "petal-length", "petal-width", "class"])
|
|
|
|
plot = px.scatter(data, x="sepal-length", y="sepal-width", size="petal-width", color="class", template="seaborn",
|
|
title="Iris flowers dataset",
|
|
labels={"sepal-length": "Sepal length", "sepal-width": "Sepal width", "petal-width": "Petal width", "class": "Class"})
|
|
plot.layout.update({"font": {"family": "Cabin", "size": 13}})
|
|
plot.show()
|