Skip to content

Commit f9d3276

Browse files
author
Gordon Shotwell
committed
Update getting started to use new target app
1 parent c8afe93 commit f9d3276

40 files changed

+8287
-3673
lines changed

apps/problem-sets/1-getting-started/1.1-data-frame/app-solution.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
import pandas as pd
33
from pathlib import Path
44

5-
infile = Path(__file__).parent / "penguins.csv"
6-
penguins = pd.read_csv(infile)
5+
infile = Path(__file__).parent / "model_data.csv"
6+
df = pd.read_csv(infile)
7+
df = df.drop(columns=["text"])
78

89

910
@render.data_frame
1011
def penguins_df():
11-
return penguins
12+
return df

apps/problem-sets/1-getting-started/1.1-data-frame/app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
import pandas as pd
33
from pathlib import Path
44

5-
infile = Path(__file__).parent / "penguins.csv"
6-
penguins = pd.read_csv(infile)
5+
infile = Path(__file__).parent / "simulated-data.csv"
6+
df = pd.read_csv(infile)
77

88

99
@render.____
1010
def penguins_df():
11-
return penguins
11+
return df

apps/problem-sets/1-getting-started/1.1-data-frame/penguins.csv

Lines changed: 0 additions & 345 deletions
This file was deleted.

0 commit comments

Comments
 (0)