Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pandas as pd
- import numpy as np
- names = pd.read_csv('locations for accuracy measures.csv')
- data = pd.read_csv('mv_revstar_pc_unpriced_locations_201812031415.csv')
- names=list(names['lame'])
- data_names=list(data['location_name'])
- result=pd.DataFrame()
- for name in names:
- if name in data_names:
- result=result.append(data.loc[data['location_name']==name,:])
- UUIDs=pd.DataFrame()
- UUIDs=pd.concat([result["location_name"],result['stargate_location_uuid']],axis=1)
- UUIDs=UUIDs.reset_index(drop=True)
- print(UUIDs)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement