From 0183a97b35936b7d883cfc73ac9a61598b792850 Mon Sep 17 00:00:00 2001 From: tusshigoyal <56935385+tusshigoyal@users.noreply.github.com> Date: Thu, 24 Oct 2019 00:07:09 +0530 Subject: [PATCH] Update PyCon un-sad Pandas.ipynb --- pyCon materials/PyCon un-sad Pandas.ipynb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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"