From 038ad951da19c0eb29eca94242996d2da307bfb2 Mon Sep 17 00:00:00 2001 From: Fernando Herrera Date: Sun, 19 Dec 2021 10:00:31 +0000 Subject: [PATCH] name change (#526) --- crates/nu-command/src/dataframe/series/cumulative.rs | 12 ++++++------ crates/nu_plugin_python/plugin.py | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/crates/nu-command/src/dataframe/series/cumulative.rs b/crates/nu-command/src/dataframe/series/cumulative.rs index 8e4cfd8145..a61484f8dc 100644 --- a/crates/nu-command/src/dataframe/series/cumulative.rs +++ b/crates/nu-command/src/dataframe/series/cumulative.rs @@ -31,9 +31,9 @@ impl CumType { fn to_str(&self) -> &'static str { match self { - CumType::Min => "cum_min", - CumType::Max => "cum_max", - CumType::Sum => "cum_sum", + CumType::Min => "cumulative_min", + CumType::Max => "cumulative_max", + CumType::Sum => "cumulative_sum", } } } @@ -43,7 +43,7 @@ pub struct Cumulative; impl Command for Cumulative { fn name(&self) -> &str { - "dfr cum" + "dfr cumulative" } fn usage(&self) -> &str { @@ -60,10 +60,10 @@ impl Command for Cumulative { fn examples(&self) -> Vec { vec![Example { description: "Cumulative sum for a series", - example: "[1 2 3 4 5] | dfr to-df | dfr cum sum", + example: "[1 2 3 4 5] | dfr to-df | dfr cumulative sum", result: Some( NuDataFrame::try_from_columns(vec![Column::new( - "0_cum_sum".to_string(), + "0_cumulative_sum".to_string(), vec![ Value::test_int(1), Value::test_int(3), diff --git a/crates/nu_plugin_python/plugin.py b/crates/nu_plugin_python/plugin.py index 55c26f48b9..ec19614e08 100644 --- a/crates/nu_plugin_python/plugin.py +++ b/crates/nu_plugin_python/plugin.py @@ -114,7 +114,7 @@ def process_call(plugin_call): Use this information to implement your plugin logic """ # Pretty printing the call to stderr - sys.stderr.write(f"{json.dumps(plugin_call, indent=4)}") + sys.stderr.write(json.dumps(plugin_call, indent=4)) sys.stderr.write("\n") # Creates a Value of type List that will be encoded and sent to nushell