Skip to content

Commit

Permalink
serde for group options (#3349)
Browse files Browse the repository at this point in the history
  • Loading branch information
elferherrera committed May 10, 2022
1 parent 6ef6271 commit 4c3644a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions polars/polars-lazy/src/prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,18 @@ pub(crate) use polars_time::in_nanoseconds_window;
pub(crate) use polars_time::{DynamicGroupOptions, PolarsTemporalGroupby, RollingGroupOptions};

#[cfg(not(feature = "dynamic_groupby"))]
#[cfg(feature = "serde")]
use serde::{Deserialize, Serialize};

#[cfg(not(feature = "dynamic_groupby"))]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[derive(Clone, Debug)]
pub struct DynamicGroupOptions {
pub index_column: String,
}

#[cfg(not(feature = "dynamic_groupby"))]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[derive(Clone, Debug)]
pub struct RollingGroupOptions {
pub index_column: String,
Expand Down

0 comments on commit 4c3644a

Please sign in to comment.