forked from nushell/nushell
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Polars command reorg (nushell#13798)
# Description House keeping. Restructures polars modules as discussed in: https://docs.google.com/spreadsheets/d/1gyA58i_yTXKCJ5DbO_RxBNAlK6S7C1M22ppKwVLZltc/edit?usp=sharing
- Loading branch information
Showing
127 changed files
with
958 additions
and
918 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...polars/src/dataframe/series/cumulative.rs → ...taframe/command/aggregation/cumulative.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
44 changes: 44 additions & 0 deletions
44
crates/nu_plugin_polars/src/dataframe/command/aggregation/mod.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
mod aggregate; | ||
mod aggregation_commands; | ||
mod cumulative; | ||
pub mod groupby; | ||
mod median; | ||
mod n_null; | ||
mod n_unique; | ||
mod quantile; | ||
mod rolling; | ||
mod value_counts; | ||
|
||
use crate::PolarsPlugin; | ||
use nu_plugin::PluginCommand; | ||
|
||
pub use aggregate::LazyAggregate; | ||
pub use aggregation_commands::*; | ||
pub use cumulative::Cumulative; | ||
pub use n_null::NNull; | ||
pub use n_unique::NUnique; | ||
pub use rolling::Rolling; | ||
pub use value_counts::ValueCount; | ||
|
||
pub(crate) fn aggregation_commands() -> Vec<Box<dyn PluginCommand<Plugin = PolarsPlugin>>> { | ||
vec![ | ||
Box::new(Cumulative), | ||
Box::new(ExprAggGroups), | ||
Box::new(ExprCount), | ||
Box::new(ExprList), | ||
Box::new(ExprMax), | ||
Box::new(ExprMin), | ||
Box::new(ExprSum), | ||
Box::new(ExprMean), | ||
Box::new(ExprStd), | ||
Box::new(ExprVar), | ||
Box::new(LazyAggregate), | ||
Box::new(median::LazyMedian), | ||
Box::new(quantile::LazyQuantile), | ||
Box::new(groupby::ToLazyGroupBy), | ||
Box::new(Rolling), | ||
Box::new(ValueCount), | ||
Box::new(NNull), | ||
Box::new(NUnique), | ||
] | ||
} |
2 changes: 1 addition & 1 deletion
2
...gin_polars/src/dataframe/series/n_null.rs → ...c/dataframe/command/aggregation/n_null.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
3 changes: 1 addition & 2 deletions
3
...in_polars/src/dataframe/series/rolling.rs → .../dataframe/command/aggregation/rolling.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
...lars/src/dataframe/series/value_counts.rs → ...frame/command/aggregation/value_counts.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
..._polars/src/dataframe/series/all_false.rs → ...rc/dataframe/command/boolean/all_false.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
...n_polars/src/dataframe/series/all_true.rs → ...src/dataframe/command/boolean/all_true.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.