Skip to content

Instantly share code, notes, and snippets.

@neelindresh
Created February 20, 2019 19:04
Show Gist options
  • Save neelindresh/4cb6da890aba2505b8ab0cdd270348c4 to your computer and use it in GitHub Desktop.
Save neelindresh/4cb6da890aba2505b8ab0cdd270348c4 to your computer and use it in GitHub Desktop.
import pandas as pd
data=pd.read_csv('location.csv')
print(data.columns)
data=data[['country_name','city_name','country_iso_code']]
print(data)
data.to_csv('city_country_data.csv')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment