21 lines
697 B
Python
Executable file
21 lines
697 B
Python
Executable file
#!/usr/bin/env python3
|
|
# A simple test
|
|
# Alberto Rodriguez Sanchez bt0dotninja@fedoraproject.org
|
|
# Renato Silva resilva87@fedoraproject.org
|
|
|
|
|
|
|
|
import pandas
|
|
from geofp import geofp
|
|
from datetime import datetime, timezone
|
|
|
|
if __name__=='__main__':
|
|
#constructor load the config file (Mandatory)
|
|
gp=geofp('myconfig.cfg')
|
|
# get all the members active since June, 01
|
|
mydate=datetime(2020,1,1,tzinfo=timezone.utc)
|
|
print(mydate)
|
|
df=gp.all_fedorians(mydate)
|
|
# save as csv (actually is pandas dataframe)
|
|
df.to_csv('Fedora_Community.csv')
|
|
print(gp.plot_world2(title='Fedora Community',label='Active members by country',filename='Fedora_Community.html', notebook=False))
|