Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devmnj/panda-data-frame-example
This python example show how to draw panda data frame from json and plot the data
https://github.com/devmnj/panda-data-frame-example
json pandas-dataframe python python3
Last synced: about 1 month ago
JSON representation
This python example show how to draw panda data frame from json and plot the data
- Host: GitHub
- URL: https://github.com/devmnj/panda-data-frame-example
- Owner: devmnj
- License: gpl-3.0
- Created: 2020-06-14T06:00:39.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-14T06:21:33.000Z (over 4 years ago)
- Last Synced: 2024-11-15T23:26:52.084Z (3 months ago)
- Topics: json, pandas-dataframe, python, python3
- Language: Python
- Homepage: https:\\developerm.dev
- Size: 144 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CovideKeralaUpdates
This `Python` script fetch latest Covid19 updates for the State of Kerala [India]. I also used panda to generate dataframes and plot the data. The `plots were automatically` saved as `PNG` file to `hard disk`# API
`API` I used was provided by api.covid19india.org
https://api.covid19india.org/state_district_wise.json# Screen Shot
`IDE` I used is Spyder which comes with Anaconda distribution
# Panda DataFrames
```
data={'confirmed':[con_kz,con_mpm,con_pkd,con_thr,con_alp,con_erk,con_idk,con_kan,con_kaz,con_kol,con_ktm,con_pat,con_wyd,con_tvm]}
df2= pd.DataFrame(data,columns=['confirmed'],index=['Kozhikode','Malappuram','Palakkad','Thrissur','Alappuza',
'Ernakulam','Idukki','Kannur','Kasaragod','Kollam','Kottayam','Pathanamthitta','Wayanad',"Thiruvananthapuram"])
```
# Plots
````
df2.plot.pie(y='confirmed',figsize=(13,13),autopct='%1.1f%%',startangle=90)
````