danielh commited on
Commit
6c31d1c
·
verified ·
1 Parent(s): 93c8bc4

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -5
README.md CHANGED
@@ -49,11 +49,10 @@ The code to create the dataset is available on [this Colab notebook](https://col
49
  The dataset contains a train and a validation set, with 15343 and 3011 examples, respectively. Access them with
50
 
51
  ```py
52
- import pandas as pd
53
-
54
- splits = {'train': 'train.parquet', 'validation': 'validation.parquet'}
55
- df_train = pd.read_parquet("hf://datasets/coastalcph/tydi_xor_rc/" + splits["train"])
56
- df_val = pd.read_parquet("hf://datasets/coastalcph/tydi_xor_rc/" + splits["validation"])
57
  ```
58
 
59
  ### Data Instances
 
49
  The dataset contains a train and a validation set, with 15343 and 3011 examples, respectively. Access them with
50
 
51
  ```py
52
+ from datasets import load_dataset
53
+ dataset = load_dataset("coastalcph/tydi_xor_rc")
54
+ df_train = dataset["train"].to_pandas()
55
+ df_val = dataset["validation"].to_pandas()
 
56
  ```
57
 
58
  ### Data Instances