adding a quick example for the Fedora-Join group

This commit is contained in:
Alberto Rodriguez Sanchez 2018-10-23 10:40:36 -05:00
commit 8240fa35a5

18
fedora_join_example.py Executable file
View file

@ -0,0 +1,18 @@
#!/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
if __name__=='__main__':
#constructor load the config file (Mandatory)
gp=geofp('myconfig.cfg')
# get all the members active since June, 01
df=gp.by_group('fedora-join',datetime(2018,7,1))
# save as csv (actually is pandas dataframe)
df.to_csv('Fedora_join.csv')