Advertisement
CptAwe

Temp

Dec 7th, 2018
349
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.54 KB | None | 0 0
  1. import pandas as pd
  2. import numpy as np
  3.  
  4. names = pd.read_csv('locations for accuracy measures.csv')
  5. data = pd.read_csv('mv_revstar_pc_unpriced_locations_201812031415.csv')
  6.  
  7. names=list(names['lame'])
  8.  
  9. data_names=list(data['location_name'])
  10.  
  11.  
  12. result=pd.DataFrame()
  13. for name in names:
  14.     if name in data_names:
  15.         result=result.append(data.loc[data['location_name']==name,:])
  16.  
  17.  
  18.  
  19.  
  20. UUIDs=pd.DataFrame()
  21.  
  22. UUIDs=pd.concat([result["location_name"],result['stargate_location_uuid']],axis=1)
  23.  
  24. UUIDs=UUIDs.reset_index(drop=True)
  25.  
  26. print(UUIDs)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement