Skip to content

Commit

Permalink
🐛 fix notebook code
Browse files Browse the repository at this point in the history
  • Loading branch information
danyx23 committed Jun 20, 2024
1 parent d970cff commit 8f2fe40
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/@ourworldindata/grapher/src/core/Grapher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2271,10 +2271,10 @@ The code in the cell below provides the infrastructure to access our data. It is
# run_on_load: true
# ---%%
from pyodide.http import open_url
from io import StringIO
csv = open_url("${this.baseUrl}.csv").getValue()
import pandas as pd
csv = open_url("${this.baseUrl}.csv")
df = pd.read_csv(StringIO(csv))
df = pd.read_csv(csv)
# %% [markdown]
Add your code below - the example shows the first few rows of the data. Refer to the pandas documentation of ask ChatGPT for help on how to manipulate pandas dataframes.
Expand Down

0 comments on commit 8f2fe40

Please sign in to comment.