pub enum ColumnError {
LengthMismatch {
left: usize,
right: usize,
},
InvalidLength {
operation: &'static str,
expected: usize,
actual: usize,
},
InvalidSorter {
len: usize,
reason: String,
},
InvalidMaskType {
dtype: DType,
},
DTypeMismatch {
left: DType,
right: DType,
},
NegativeIntegerPower,
UInt64OutOfRange {
value: u64,
},
IntCastingNaN,
UnsupportedCast(String),
InvalidSnapshot(String),
Type(TypeError),
}Variants§
LengthMismatch
InvalidLength
InvalidSorter
InvalidMaskType
DTypeMismatch
NegativeIntegerPower
UInt64OutOfRange
A uint64 value at or above 2**63: pandas holds it, the Int64 storage
a uint64 column lives in cannot (see NumericWidth; fvsao.23).
IntCastingNaN
pandas’ IntCastingNaNError: a missing or infinite value cast to a
numpy integer dtype, which has no missing value.
UnsupportedCast(String)
pandas’ TypeError for a cast it does not make, in its words: a datetime, timedelta, period or interval column to a narrow numeric dtype (fvsao.23; its int64 view is nanoseconds or ordinals).
InvalidSnapshot(String)
Type(TypeError)
Trait Implementations§
Source§impl Clone for ColumnError
impl Clone for ColumnError
Source§impl Debug for ColumnError
impl Debug for ColumnError
Source§impl Display for ColumnError
impl Display for ColumnError
Source§impl Error for ColumnError
impl Error for ColumnError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<TypeError> for ColumnError
impl From<TypeError> for ColumnError
Source§impl PartialEq for ColumnError
impl PartialEq for ColumnError
impl StructuralPartialEq for ColumnError
Auto Trait Implementations§
impl Forget for ColumnError
impl Freeze for ColumnError
impl Move for ColumnError
impl RefUnwindSafe for ColumnError
impl Send for ColumnError
impl Sync for ColumnError
impl Unpin for ColumnError
impl UnsafeUnpin for ColumnError
impl UnwindSafe for ColumnError
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