mirror of
https://github.com/nushell/nushell.git
synced 2025-07-14 05:15:23 +02:00
All of the dataframe commands ported over with no issues... ### 11 tests are commented out (for now) So 100 of the original 111 tests are passing with only 11 tests being ignored for now.. As per our conversation in the core team meeting on Wednesday I took @jntrnr suggestion and just commented out the tests dealing with [IntoDatetime](https://github.com/nushell/nushell/blob/main/crates/nu-command/src/conversions/into/mod.rs) Later on we can move this functionality out of nu-command if we decide it makes sense... ### The following tests were ignored... ```rust modified: crates/nu-cmd-dataframe/src/dataframe/series/date/get_day.rs modified: crates/nu-cmd-dataframe/src/dataframe/series/date/get_hour.rs modified: crates/nu-cmd-dataframe/src/dataframe/series/date/get_minute.rs modified: crates/nu-cmd-dataframe/src/dataframe/series/date/get_month.rs modified: crates/nu-cmd-dataframe/src/dataframe/series/date/get_nanosecond.rs modified: crates/nu-cmd-dataframe/src/dataframe/series/date/get_ordinal.rs modified: crates/nu-cmd-dataframe/src/dataframe/series/date/get_second.rs modified: crates/nu-cmd-dataframe/src/dataframe/series/date/get_week.rs modified: crates/nu-cmd-dataframe/src/dataframe/series/date/get_weekday.rs modified: crates/nu-cmd-dataframe/src/dataframe/series/date/get_year.rs modified: crates/nu-cmd-dataframe/src/dataframe/series/string/strftime.rs ```
66 lines
1.7 KiB
Rust
66 lines
1.7 KiB
Rust
pub mod aggregate;
|
|
mod collect;
|
|
mod fetch;
|
|
mod fill_nan;
|
|
mod fill_null;
|
|
mod filter;
|
|
pub mod groupby;
|
|
mod join;
|
|
mod macro_commands;
|
|
mod quantile;
|
|
mod select;
|
|
mod sort_by_expr;
|
|
mod to_lazy;
|
|
|
|
use nu_protocol::engine::StateWorkingSet;
|
|
|
|
use crate::dataframe::lazy::aggregate::LazyAggregate;
|
|
pub use crate::dataframe::lazy::collect::LazyCollect;
|
|
use crate::dataframe::lazy::fetch::LazyFetch;
|
|
use crate::dataframe::lazy::fill_nan::LazyFillNA;
|
|
use crate::dataframe::lazy::fill_null::LazyFillNull;
|
|
use crate::dataframe::lazy::filter::LazyFilter;
|
|
use crate::dataframe::lazy::groupby::ToLazyGroupBy;
|
|
use crate::dataframe::lazy::join::LazyJoin;
|
|
pub(crate) use crate::dataframe::lazy::macro_commands::*;
|
|
use crate::dataframe::lazy::quantile::LazyQuantile;
|
|
pub(crate) use crate::dataframe::lazy::select::LazySelect;
|
|
use crate::dataframe::lazy::sort_by_expr::LazySortBy;
|
|
pub use crate::dataframe::lazy::to_lazy::ToLazyFrame;
|
|
|
|
pub fn add_lazy_decls(working_set: &mut StateWorkingSet) {
|
|
macro_rules! bind_command {
|
|
( $command:expr ) => {
|
|
working_set.add_decl(Box::new($command));
|
|
};
|
|
( $( $command:expr ),* ) => {
|
|
$( working_set.add_decl(Box::new($command)); )*
|
|
};
|
|
}
|
|
|
|
// Dataframe commands
|
|
bind_command!(
|
|
LazyAggregate,
|
|
LazyCache,
|
|
LazyCollect,
|
|
LazyFetch,
|
|
LazyFillNA,
|
|
LazyFillNull,
|
|
LazyFilter,
|
|
LazyJoin,
|
|
LazyQuantile,
|
|
LazyMax,
|
|
LazyMin,
|
|
LazySum,
|
|
LazyMean,
|
|
LazyMedian,
|
|
LazyStd,
|
|
LazyVar,
|
|
LazyReverse,
|
|
LazySelect,
|
|
LazySortBy,
|
|
ToLazyFrame,
|
|
ToLazyGroupBy
|
|
);
|
|
}
|