plotly.express.data package¶
Built-in datasets for demonstration, educational and test purposes.
Each row represents the availability of car-sharing services near the centroid of a zone in Montreal over a month-long period.
- Returns
['centroid_lat', 'centroid_lon', 'car_hours', 'peak_hour'].- Return type
A
pandas.DataFramewith 249 rows and the following columns
-
plotly.express.data.election()¶ Each row represents voting results for an electoral district in the 2013 Montreal mayoral election.
- Returns
['district', 'Coderre', 'Bergeron', 'Joly', 'total', 'winner', 'result', 'district_id'].- Return type
A
pandas.DataFramewith 58 rows and the following columns
-
plotly.express.data.election_geojson()¶ Each feature represents an electoral district in the 2013 Montreal mayoral election.
- Returns
A GeoJSON-formatted
dictwith 58 polygon or multi-polygon features whoseidis an electoral district numerical ID and whosedistrictproperty is the ID and district name.
-
plotly.express.data.gapminder()¶ Each row represents a country on a given year.
https://www.gapminder.org/data/
- Returns
['country', 'continent', 'year', 'lifeExp', 'pop', 'gdpPercap', 'iso_alpha', 'iso_num'].- Return type
A
pandas.DataFramewith 1704 rows and the following columns
-
plotly.express.data.iris()¶ Each row represents a flower.
https://en.wikipedia.org/wiki/Iris_flower_data_set
- Returns
['sepal_length', 'sepal_width', 'petal_length', 'petal_width', 'species', 'species_id'].- Return type
A
pandas.DataFramewith 150 rows and the following columns
-
plotly.express.data.tips()¶ Each row represents a restaurant bill.
https://vincentarelbundock.github.io/Rdatasets/doc/reshape2/tips.html
- Returns
['total_bill', 'tip', 'sex', 'smoker', 'day', 'time', 'size'].- Return type
A
pandas.DataFramewith 244 rows and the following columns
-
plotly.express.data.wind()¶ Each row represents a level of wind intensity in a cardinal direction, and its frequency.
- Returns
['direction', 'strength', 'frequency'].- Return type
A
pandas.DataFramewith 128 rows and the following columns
