Jensen-holm commited on
Commit
676a522
·
verified ·
1 Parent(s): 335f93e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +17 -13
README.md CHANGED
@@ -12,23 +12,12 @@ This data is available through the pybaseball pacakge and the baseballr package,
12
 
13
  ## Usage
14
 
15
- ***Tidyverse***
16
- ```r
17
- library(tidyverse)
18
-
19
- statcast_pitches <- read_parquet(
20
- "https://huggingface.co/datasets/Jensen-holm/statcast-era-pitches/resolve/main/data/statcast_era_pitches.parquet"
21
- )
22
- ```
23
-
24
  ***Pandas***
25
 
26
  ```python
27
  import pandas as pd
28
 
29
- statcast_pitches = pd.read_parquet(
30
- "https://huggingface.co/datasets/Jensen-holm/statcast-era-pitches/resolve/main/data/statcast_era_pitches.parquet"
31
- )
32
  ```
33
 
34
  ***Polars***
@@ -36,7 +25,22 @@ statcast_pitches = pd.read_parquet(
36
  ```python
37
  import polars as pl
38
 
39
- statcast_pitches = pl.read_parquet(
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  "https://huggingface.co/datasets/Jensen-holm/statcast-era-pitches/resolve/main/data/statcast_era_pitches.parquet"
41
  )
42
  ```
 
12
 
13
  ## Usage
14
 
 
 
 
 
 
 
 
 
 
15
  ***Pandas***
16
 
17
  ```python
18
  import pandas as pd
19
 
20
+ df = pd.read_parquet("hf://datasets/Jensen-holm/statcast-era-pitches/data/statcast_era_pitches.parquet")
 
 
21
  ```
22
 
23
  ***Polars***
 
25
  ```python
26
  import polars as pl
27
 
28
+ df = pl.read_parquet('hf://datasets/Jensen-holm/statcast-era-pitches/data/statcast_era_pitches.parquet')
29
+ ```
30
+
31
+ ***HuggingFace Dataset***
32
+
33
+ ```python
34
+ from datasets import load_dataset
35
+
36
+ ds = load_dataset("Jensen-holm/statcast-era-pitches")
37
+ ```
38
+
39
+ ***Tidyverse***
40
+ ```r
41
+ library(tidyverse)
42
+
43
+ statcast_pitches <- read_parquet(
44
  "https://huggingface.co/datasets/Jensen-holm/statcast-era-pitches/resolve/main/data/statcast_era_pitches.parquet"
45
  )
46
  ```