pub struct DenseGroupLayout { /* private fields */ }Expand description
The dense group ids of one grouping key - each row’s group number in
first-seen order, and the group count - computed by the first groupby
that needs them and shared by every SeriesGroupBy built over that key
with Series::groupby_sharing: pandas’ groupby object factorizes its
keys once for all its column selections (g['a'].sum(); g['b'].max()),
where each selection here refactorized them (br-frankenpandas-vug8g).
The ids are an Arc so a hand-out is O(1) (n usizes, 16 MB at 2M rows).
Trait Implementations§
Source§impl Debug for DenseGroupLayout
impl Debug for DenseGroupLayout
Auto Trait Implementations§
impl !Freeze for DenseGroupLayout
impl RefUnwindSafe for DenseGroupLayout
impl Send for DenseGroupLayout
impl Sync for DenseGroupLayout
impl Unpin for DenseGroupLayout
impl UnsafeUnpin for DenseGroupLayout
impl UnwindSafe for DenseGroupLayout
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more