adding a quick example for the Fedora-Join group
This commit is contained in:
parent
e814504041
commit
8240fa35a5
1 changed files with 18 additions and 0 deletions
18
fedora_join_example.py
Executable file
18
fedora_join_example.py
Executable 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')
|
||||
Loading…
Add table
Add a link
Reference in a new issue