Add search terms to arg dataframe commands (#6724)

* added search terms for arg prefixed dataframe commands

* remove search terms that already produce results
This commit is contained in:
HannahZhuSWE 2022-10-15 13:49:09 -04:00 committed by GitHub
parent 1572808adb
commit 7d5d53cf85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 20 additions and 0 deletions

View File

@ -19,6 +19,10 @@ impl Command for ArgMax {
"Return index for max value in series"
}
fn search_terms(&self) -> Vec<&str> {
vec!["argmax", "maximum", "most", "largest", "greatest"]
}
fn signature(&self) -> Signature {
Signature::build(self.name())
.input_type(Type::Custom("dataframe".into()))

View File

@ -19,6 +19,10 @@ impl Command for ArgMin {
"Return index for min value in series"
}
fn search_terms(&self) -> Vec<&str> {
vec!["argmin", "minimum", "least", "smallest", "lowest"]
}
fn signature(&self) -> Signature {
Signature::build(self.name())
.input_type(Type::Custom("dataframe".into()))

View File

@ -19,6 +19,10 @@ impl Command for ArgSort {
"Returns indexes for a sorted series"
}
fn search_terms(&self) -> Vec<&str> {
vec!["argsort", "order", "arrange"]
}
fn signature(&self) -> Signature {
Signature::build(self.name())
.switch("reverse", "reverse order", Some('r'))

View File

@ -19,6 +19,10 @@ impl Command for ArgTrue {
"Returns indexes where values are true"
}
fn search_terms(&self) -> Vec<&str> {
vec!["argtrue", "truth", "boolean-true"]
}
fn signature(&self) -> Signature {
Signature::build(self.name())
.input_type(Type::Custom("dataframe".into()))

View File

@ -19,6 +19,10 @@ impl Command for ArgUnique {
"Returns indexes for unique values"
}
fn search_terms(&self) -> Vec<&str> {
vec!["argunique", "distinct", "noduplicate", "unrepeated"]
}
fn signature(&self) -> Signature {
Signature::build(self.name())
.input_type(Type::Custom("dataframe".into()))