ratneshpasi03 commited on
Commit
43a5b8a
·
1 Parent(s): b790d50

Update questions data

Browse files
data/questions/2/answer.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ Andhra Pradesh
data/questions/2/code.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ def true_code():
2
+ import pandas as pd
3
+
4
+ df = pd.read_csv('data/raw_data/Data.csv', sep=",")
5
+
6
+ data = df[df['PM2.5'] > 300]
7
+ ans = data.groupby(['state', 'station']).value_counts().idxmax()[0]
8
+ print(ans)
9
+
10
+ true_code()
data/questions/2/metadata.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "question_id": 2,
3
+ "category": "spatial",
4
+ "answer_category": "single",
5
+ "plot": false,
6
+ "libraries": [
7
+ "pandas"
8
+ ]
9
+ }
data/questions/2/question.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ Which state had the most days with hazardous PM2.5 levels (above 300 µg/m³)?