I have following sample json file
{"id": 103, "data": [{"point": [10, 20], "sp": 2}, {"point": [20, 20], "sp": 3}, {"point": [10, 20], "sp": 0}, {"point": [30, 20], "sp": 0}]}
I read the json with json.load function and then perform
df = pd.DataFrame(filejson['data'])
if I print this df the data is shown as below using head() function
Point sp
0 [10, 20] 2
1 [20,20] 3
I would like to filter all null,zero from field "sp" so expecting output as
sp
0 2
1 3
I would like to load only column "sp" and ignore all zero. is that possible?