SHARE
TWEET

Untitled

a guest Jun 17th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import pandas as pd
  2.      
  3. tabela1 = pd.read_csv('C:scriptspasta 1pasta 2pasta 3cadmun_simple.csv')
  4. tabela2 = pd.read_csv('C:scriptspasta 1pasta 2pasta 3BP-2010.csv')
  5.      
  6. import matplotlib as mt
  7. import matplotlib.pyplot as plt
  8. import matplotlib_venn
  9. from matplotlib_venn import venn2
  10.      
  11. tabela=tabela1.merge(tabela2, how='outer', left_on='MUNCODDV', right_on='geocode')
  12. tabela.to_csv('C:scriptspasta 1pasta 2pasta 3/tabela.csv')
  13. b = tabela.loc[138:152, :]
  14. b.to_csv('C:scriptspasta 1pasta 2pasta 3/tabela_final.csv')
  15.      
  16. latitude = b.LATITUDE.median()
  17. longitude = b.LONGITUDE.median()
  18. quantis = b.population.quantile([.25,.50,.75])
  19. pop_t = b.population.sum()
  20.  
  21. b['LATITUDE'] == latitude
  22. b['LONGITUDE']== longitude
  23. b.index[b.LATITUDE == latitude, b.LONGITUDE ==longitude]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top