SHARE
TWEET

Untitled

a guest Aug 19th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import pandas
  2.  
  3. colNames = ["country","iso2","iso3","city","city_ascii"]
  4. dataFrame = pandas.read_csv('worldcities.csv', index_col="city_ascii", usecols=colNames)
  5. #print(dataFrame[["city_ascii","iso2", "iso3"]])
  6.  
  7. #dataFrame = dataFrame.rename(columns = {'country':'Negara'})
  8.  
  9. dataFrame[dataFrame.country == 'Indonesia']
  10.  
  11. dataFrame[dataFrame.country == "United States"].groupby(["country","iso2","iso3"]).count()
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