Skip to content

Commit 6053820

Browse files
committed
notebook example
1 parent 83fd445 commit 6053820

File tree

6 files changed

+23858
-5
lines changed

6 files changed

+23858
-5
lines changed

datasets/data/bar_pass_prediction.csv

Lines changed: 22408 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import pandas as pd
2+
from pathlib import Path
3+
import json
4+
5+
6+
data_folder = Path(__file__).resolve().parent / "data"
7+
dtypes_path = (data_folder / "dtypes.json")
8+
csv_path = str(data_folder / "bar_pass_prediction.csv")
9+
10+
11+
with dtypes_path.open('r') as f:
12+
dtypes = json.load(f)
13+
columns = list(dtypes.keys())
14+
df = pd.read_csv(csv_path, skiprows=1, sep=';', header=None, names=columns).astype(dtypes)

0 commit comments

Comments
 (0)