diff --git a/pyCon materials/PyCon un-sad Pandas.ipynb b/pyCon materials/PyCon un-sad Pandas.ipynb index a762d14..0012386 100644 --- a/pyCon materials/PyCon un-sad Pandas.ipynb +++ b/pyCon materials/PyCon un-sad Pandas.ipynb @@ -177,6 +177,20 @@ "4 -73.81854 3.0 169.3900 89.3900 " ] }, + for stat in stats_obj: + print(stat) + print(type(stat)) + df=pd.read_json(stat,orient='columns') + # with open("output.txt","a+") as f: + # print("hello") + f.write(str( stat)+"\n\n") + # f.close() + +""" +#for conversion to json +my_json=new_bytes.decode('utf8').replace("'",'"') +data=json.loads(my_json) +s=json.dumps(data, intent=4, sort_keys=True)""" "execution_count": 53, "metadata": {}, "output_type": "execute_result"