pub enum DatetimeTextKey {
Instant(IndexLabel),
Rows(Vec<usize>),
}Expand description
How pandas’ .loc / [] reads a text key on a datetime index.
Variants§
Instant(IndexLabel)
At or finer than the index’s own resolution: that instant, looked up exactly (“2024-02-01” on a daily index).
Rows(Vec<usize>)
Coarser than the index’s resolution: every row inside the period the text names, in index order (“2024-02” on a daily index, “2024-01-02” on an hourly one) - a Series or frame even when one row matches.
Trait Implementations§
Source§impl Clone for DatetimeTextKey
impl Clone for DatetimeTextKey
Source§impl Debug for DatetimeTextKey
impl Debug for DatetimeTextKey
impl Eq for DatetimeTextKey
Source§impl PartialEq for DatetimeTextKey
impl PartialEq for DatetimeTextKey
impl StructuralPartialEq for DatetimeTextKey
Auto Trait Implementations§
impl !RefUnwindSafe for DatetimeTextKey
impl !UnwindSafe for DatetimeTextKey
impl Freeze for DatetimeTextKey
impl Send for DatetimeTextKey
impl Sync for DatetimeTextKey
impl Unpin for DatetimeTextKey
impl UnsafeUnpin for DatetimeTextKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.