fp='https://raw.githubusercontent.com/'+\
'OlgaBelitskaya/data/main/external_json/'
se=pandas.read_json(fp+'h7rb-945c.json')
fl=['dbn','ell_programs','language_classes',
'finalgrades','total_students',
'graduation_rate','attendance_rate',
'college_career_rate','pct_stu_safe',
'pct_stu_enough_variety','latitude',
'longitude','council_district','city']
f,ax=pylab.subplots(ncols=2,figsize=(6,4))
se[fl[i+5]]=se[fl[i+5]].astype('str')\
.str.replace('N/A','0').astype('float')
x='longitude',y='latitude',
title=fl[i+5].replace('_',' '),
ax=ax[i],alpha=.8,grid=True)
ax[i].set_facecolor('slategray')
No comments:
Post a Comment