plotly.py icon indicating copy to clipboard operation
plotly.py copied to clipboard

Where to find the plot.ly tutorial example data?

Open alex4200 opened this issue 3 years ago • 2 comments

I just wanted to follow this tutorial which seems to use some example data, but where can I find these data? Can I download them somewhere?

If so, maybe the link can be added on top of the tutorial page?

alex4200 avatar Aug 12 '22 13:08 alex4200

The sample data used in the tutorial is loaded in the sample code at the very top, and is part of the Plotly library :)

import plotly.express as px
df = px.data.gapminder()

nicolaskruchten avatar Aug 12 '22 17:08 nicolaskruchten

In the final example on the page, the sample data is loaded from a CSV file:

import pandas as pd

url = "https://raw.githubusercontent.com/plotly/datasets/master/gapminderDataFiveYear.csv"
dataset = pd.read_csv(url)

nicolaskruchten avatar Aug 12 '22 17:08 nicolaskruchten

Hi - we are trying to tidy up the stale issues and PRs in Plotly's public repositories so that we can focus on things that are still important to our community. Since this one has been sitting for several years, I'm going to close it; if it is still a concern, please add a comment letting us know what recent version of our software you've checked it with so that I can reopen it and add it to our backlog. Thanks for your help - @gvwilson

gvwilson avatar Jul 04 '24 13:07 gvwilson