Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. import pandas as pd
  2. import xgboost as xgb
  3.  
  4. df = pd.read_csv("2018_all_indicators.csv")
  5. df = df[['dimension','indicator_name','iso3','country_name','2017']]
  6. df.shape # (25636, 5)
  7. df = df.dropna() # getting rid of NaNs
  8.  
  9. df.shape #(12728, 5)
  10. df.iso3.unique().shape # 195 countries
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement