recmeapp commited on
Commit
47fe254
·
1 Parent(s): c9f8dba

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +12 -0
README.md CHANGED
@@ -41,6 +41,18 @@ English
41
  from datasets import load_dataset
42
  import pandas as pd
43
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  ```
45
 
46
  [More Information Needed]
 
41
  from datasets import load_dataset
42
  import pandas as pd
43
 
44
+ # load the dataset
45
+ mbr_data = load_dataset('recmeapp/AARSynth', data_dir='replies')
46
+
47
+ # Save dataset to .csv file for creating pandas dataframe
48
+ mbr_data['train'].to_csv('./mbr_data.csv', sep='****')
49
+
50
+ # Convert to pandas dataframe
51
+ aarsynth_df = pd.read_csv('./mbr_data.csv', sep='****')
52
+
53
+ # How many interactions are there in the AARSynth dataset?
54
+ print(f'There are {len(aarsynth_df)} interactions in AARSynth dataset.')
55
+
56
  ```
57
 
58
  [More Information Needed]