hollyyfc commited on
Commit
6d47599
·
1 Parent(s): 50e96a4

fix data script

Browse files
Files changed (1) hide show
  1. tidytuesday_script.py +10 -1
tidytuesday_script.py CHANGED
@@ -120,4 +120,13 @@ class TidyTuesdayPython(datasets.GeneratorBasedBuilder):
120
  with open(filepath, "r") as j:
121
  tidytuesday_json = json.loads(j.read())
122
  for record in tidytuesday_json:
123
- yield record
 
 
 
 
 
 
 
 
 
 
120
  with open(filepath, "r") as j:
121
  tidytuesday_json = json.loads(j.read())
122
  for record in tidytuesday_json:
123
+ id_ = record['date_posted']
124
+ yield id_, {
125
+ "project_name": record["project_name"],
126
+ "project_source": record["project_source"],
127
+ "description": record["description"],
128
+ "data_source_url": record["data_source_url"],
129
+ "data_dictionary": record["data_dictionary"],
130
+ "data": record["data"],
131
+ "data_load": record["data_load"],
132
+ }