Mildly edited a small handful of help messages (#6868)

* Edited a handful of help messages

* Remove line break as instructed by clippy
This commit is contained in:
Leon
2022-10-23 16:02:52 +10:00
committed by GitHub
parent e49b359848
commit 24a98f8999
16 changed files with 41 additions and 38 deletions

View File

@ -103,14 +103,14 @@ impl SQLContext {
let idx = match idx.parse::<usize>() {
Ok(0)| Err(_) => Err(
PolarsError::ComputeError(
format!("Group By Error: Only positive number or expression are supported, got {idx}").into()
format!("Group-By Error: Only positive number or expression are supported, got {idx}").into()
)),
Ok(idx) => Ok(idx)
}?;
Ok(projection[idx].clone())
}
SqlExpr::Value(_) => Err(
PolarsError::ComputeError("Group By Error: Only positive number or expression are supported".into())
PolarsError::ComputeError("Group-By Error: Only positive number or expression are supported".into())
),
_ => parse_sql_expr(e)
}
@ -124,7 +124,7 @@ impl SQLContext {
// Return error on wild card, shouldn't process this
if contain_wildcard {
return Err(PolarsError::ComputeError(
"Group By Error: Can't processed wildcard in groupby".into(),
"Group-By Error: Can't process wildcard in group-by".into(),
));
}
// Default polars group by will have group by columns at the front

View File

@ -15,7 +15,7 @@ impl Command for ToDataFrame {
}
fn usage(&self) -> &str {
"Converts a List, Table or Dictionary into a dataframe"
"Converts a list, table or record into a dataframe"
}
fn signature(&self) -> Signature {

View File

@ -243,7 +243,7 @@ expr_command!(
"max",
"Creates a max expression",
vec![Example {
description: "Max aggregation for a group by",
description: "Max aggregation for a group-by",
example: r#"[[a b]; [one 2] [one 4] [two 1]]
| into df
| group-by a
@ -274,7 +274,7 @@ expr_command!(
"min",
"Creates a min expression",
vec![Example {
description: "Min aggregation for a group by",
description: "Min aggregation for a group-by",
example: r#"[[a b]; [one 2] [one 4] [two 1]]
| into df
| group-by a
@ -305,7 +305,7 @@ expr_command!(
"sum",
"Creates a sum expression for an aggregation",
vec![Example {
description: "Sum aggregation for a group by",
description: "Sum aggregation for a group-by",
example: r#"[[a b]; [one 2] [one 4] [two 1]]
| into df
| group-by a
@ -336,7 +336,7 @@ expr_command!(
"mean",
"Creates a mean expression for an aggregation",
vec![Example {
description: "Mean aggregation for a group by",
description: "Mean aggregation for a group-by",
example: r#"[[a b]; [one 2] [one 4] [two 1]]
| into df
| group-by a
@ -367,7 +367,7 @@ expr_command!(
"median",
"Creates a median expression for an aggregation",
vec![Example {
description: "Median aggregation for a group by",
description: "Median aggregation for a group-by",
example: r#"[[a b]; [one 2] [one 4] [two 1]]
| into df
| group-by a
@ -398,7 +398,7 @@ expr_command!(
"std",
"Creates a std expression for an aggregation",
vec![Example {
description: "Std aggregation for a group by",
description: "Std aggregation for a group-by",
example: r#"[[a b]; [one 2] [one 2] [two 1] [two 1]]
| into df
| group-by a
@ -429,7 +429,7 @@ expr_command!(
"var",
"Create a var expression for an aggregation",
vec![Example {
description: "Var aggregation for a group by",
description: "Var aggregation for a group-by",
example: r#"[[a b]; [one 2] [one 2] [two 1] [two 1]]
| into df
| group-by a

View File

@ -33,7 +33,7 @@ impl Command for ExprQuantile {
fn examples(&self) -> Vec<Example> {
vec![Example {
description: "Quantile aggregation for a group by",
description: "Quantile aggregation for a group-by",
example: r#"[[a b]; [one 2] [one 4] [two 1]]
| into df
| group-by a

View File

@ -17,13 +17,13 @@ impl Command for LazyAggregate {
}
fn usage(&self) -> &str {
"Performs a series of aggregations from a group by"
"Performs a series of aggregations from a group-by"
}
fn signature(&self) -> Signature {
Signature::build(self.name())
.rest(
"Group by expressions",
"Group-by expressions",
SyntaxShape::Any,
"Expression(s) that define the aggregations to be applied",
)

View File

@ -16,15 +16,15 @@ impl Command for ToLazyGroupBy {
}
fn usage(&self) -> &str {
"Creates a groupby object that can be used for other aggregations"
"Creates a group-by object that can be used for other aggregations"
}
fn signature(&self) -> Signature {
Signature::build(self.name())
.rest(
"Group by expressions",
"Group-by expressions",
SyntaxShape::Any,
"Expression(s) that define the lazy group by",
"Expression(s) that define the lazy group-by",
)
.input_type(Type::Custom("dataframe".into()))
.output_type(Type::Custom("dataframe".into()))