In [4]:
import pandas as pd
In [21]:
flickr = pd.read_csv('photo.list', header=None)
poi = pd.read_csv('poi.list', header=None)
In [12]:
flickr.head()
Out[12]:
In [15]:
flickr_nm = flickr[[3,4,1]]
flickr_nm.columns = ['longitude', 'latitude', 'user']
In [16]:
flickr_nm.head()
Out[16]:
In [18]:
flickr_nm.to_csv('flickr.csv', index=False)
In [22]:
poi.head()
Out[22]:
In [23]:
poi.columns = ['longitude', 'latitude', 'type']
poi.to_csv('osm.csv', index=False)
In [ ]: