In [1]:
!#pip install plotly_express
"#pip" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
In [1]:
import plotly.express as px
print(px.data.iris.__doc__)
iris = px.data.iris()
iris.head()
    Each row represents a flower.

    https://en.wikipedia.org/wiki/Iris_flower_data_set

    Returns:
        A `pandas.DataFrame` with 150 rows and the following columns: `['sepal_length', 'sepal_width', 'petal_length', 'petal_width', 'species',
       'species_id']`.
    
Out[1]:
sepal_length sepal_width petal_length petal_width species species_id
0 5.1 3.5 1.4 0.2 setosa 1
1 4.9 3.0 1.4 0.2 setosa 1
2 4.7 3.2 1.3 0.2 setosa 1
3 4.6 3.1 1.5 0.2 setosa 1
4 5.0 3.6 1.4 0.2 setosa 1
In [53]:
px.scatter(iris,x='sepal_length',y='sepal_width',color='species', title='Sepal height/widht').update(layout=dict(title=dict(x=0.5)))
In [2]:
px.scatter_3d(iris,x='sepal_length',y='sepal_width',z='petal_length',color='species')