Skip to content

Replace iris with df #1627

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
chriddyp opened this issue Dec 16, 2019 · 1 comment
Closed

Replace iris with df #1627

chriddyp opened this issue Dec 16, 2019 · 1 comment

Comments

@chriddyp
Copy link
Member

This comes up in all of the workshops that I do - folks don't understand what "iris" is but they do understand the universal "df" variable name.

It would be helpful if we rewrote examples like this:

import plotly.express as px
iris = px.data.iris()
fig = px.scatter(iris, x="sepal_width", y="sepal_length")
fig.show()

to be

import plotly.express as px
df = px.data.iris()
fig = px.scatter(df, x="sepal_width", y="sepal_length")
fig.show()

cc @emmanuelle @nicolaskruchten @Mahdis-z

@nicolaskruchten
Copy link
Contributor

Done and deployed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants