geofp/geofp_test.py
Richard Gregory 30dff6e864 Remove depreciated method ask_byCountry
Signed-off-by: Richard Gregory <richardgrecoson@gmail.com>
2020-09-15 21:26:38 +01:00

18 lines
638 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
if __name__=='__main__':
gp=geofp('myconfig.cfg')
df=gp.all_fedorians()
print("Follow the links")
print(gp.plot_world2(title='Map of All Fedorians By Country of Origin',label='fedorians by country',filename='Fedorians', notebook=False))
df.to_csv('AskFedora.csv')
print(gp.plot_heat(title='Map of All Fedorians By Country of Origin',label='fedorians by country',filename='Fedorians', notebook=False))