From: Erik Mackdanz Date: Fri, 24 Nov 2023 18:03:53 +0000 (-0600) Subject: rename year col X-Git-Url: https://git.humopery.space/?a=commitdiff_plain;h=ce31a466199116d0ff9db0359e1cdd28decc2f58;p=polarsbop.git rename year col --- diff --git a/src/main.rs b/src/main.rs index e4ec700..f072823 100644 --- a/src/main.rs +++ b/src/main.rs @@ -53,6 +53,7 @@ fn main() -> Result<(),PolarsError> { .filter(&df.column("Attribute")?. equal("Value")?)? .select(["Country Name","Indicator Name","Indicator Code","2022"])? + .rename("2022","Value")? .sort(["Country Name","Indicator Name"],vec!(false,false),false)?; println!("df: {:?}",df);