davidgasquez commited on
Commit
74a4f05
·
verified ·
1 Parent(s): 5bfc445

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. wdi.py +10 -8
wdi.py CHANGED
@@ -78,14 +78,16 @@ def world_development_indicators() -> pl.DataFrame:
78
 
79
  df = df.with_columns(pl.col("Year").cast(pl.Int32))
80
 
81
- df = df.rename({
82
- "Country Name": "country_name",
83
- "Country Code": "country_code",
84
- "Indicator Name": "indicator_name",
85
- "Indicator Code": "indicator_code",
86
- "Year": "year",
87
- "Indicator Value": "indicator_value",
88
- })
 
 
89
 
90
  df = df.drop_nulls(subset=["indicator_value"])
91
 
 
78
 
79
  df = df.with_columns(pl.col("Year").cast(pl.Int32))
80
 
81
+ df = df.rename(
82
+ {
83
+ "Country Name": "country_name",
84
+ "Country Code": "country_code",
85
+ "Indicator Name": "indicator_name",
86
+ "Indicator Code": "indicator_code",
87
+ "Year": "year",
88
+ "Indicator Value": "indicator_value",
89
+ }
90
+ )
91
 
92
  df = df.drop_nulls(subset=["indicator_value"])
93