Spaces:
Runtime error
Runtime error
johnbakerjr
commited on
Commit
•
9b300e3
1
Parent(s):
cbcf8cd
fixing data load issue
Browse files
app.py
CHANGED
@@ -2,7 +2,8 @@ import pandas as pd
|
|
2 |
import plotly.graph_objects as go
|
3 |
from datasets import load_dataset
|
4 |
|
5 |
-
|
|
|
6 |
|
7 |
# find countries in G20
|
8 |
g20 = ['Argentina', 'Australia', 'Brazil', 'Canada', 'China', 'France', 'Germany', 'India', 'Indonesia', 'Italy', 'Japan', 'Republic of Korea', 'Mexico', 'Russia', 'Saudi Arabia', 'South Africa', 'Turkey', 'United Kingdom', 'United States', 'Austria', 'Belgium', 'Bulgaria', 'Croatia', 'Cyprus', 'Czech Republic', 'Denmark', 'Estonia', 'Finland', 'Greece', 'Hungary', 'Ireland', 'Latvia', 'Lithuania', 'Luxembourg', 'Malta', 'Netherlands', 'Poland', 'Portugal', 'Romania', 'Slovakia', 'Slovenia', 'Spain', 'Sweden']
|
|
|
2 |
import plotly.graph_objects as go
|
3 |
from datasets import load_dataset
|
4 |
|
5 |
+
df = load_dataset('johnbakerjr/world_data_viz')
|
6 |
+
plotly_data = df.to_pandas()
|
7 |
|
8 |
# find countries in G20
|
9 |
g20 = ['Argentina', 'Australia', 'Brazil', 'Canada', 'China', 'France', 'Germany', 'India', 'Indonesia', 'Italy', 'Japan', 'Republic of Korea', 'Mexico', 'Russia', 'Saudi Arabia', 'South Africa', 'Turkey', 'United Kingdom', 'United States', 'Austria', 'Belgium', 'Bulgaria', 'Croatia', 'Cyprus', 'Czech Republic', 'Denmark', 'Estonia', 'Finland', 'Greece', 'Hungary', 'Ireland', 'Latvia', 'Lithuania', 'Luxembourg', 'Malta', 'Netherlands', 'Poland', 'Portugal', 'Romania', 'Slovakia', 'Slovenia', 'Spain', 'Sweden']
|