pub type DecimalChunked = Logical<DecimalType, Int128Type>;Available on crate feature
dtype-decimal only.Aliased Type§
pub struct DecimalChunked {
pub phys: ChunkedArray<Int128Type>,
pub dtype: DataType,
/* private fields */
}Fields§
§phys: ChunkedArray<Int128Type>§dtype: DataTypeImplementations§
Source§impl DecimalChunked
impl DecimalChunked
pub fn precision(&self) -> usize
pub fn scale(&self) -> usize
pub fn with_prec_scale( &self, prec: usize, scale: usize, strict: bool, ) -> PolarsResult<Cow<'_, Self>>
Sourcepub fn into_phys_with_prec_scale_or_sentinel(
&self,
prec: usize,
scale: usize,
sentinel: i128,
) -> Int128Chunked
pub fn into_phys_with_prec_scale_or_sentinel( &self, prec: usize, scale: usize, sentinel: i128, ) -> Int128Chunked
Converts self to a physical representation with the given precision and scale, returning the given sentinel value instead for values which don’t fit in the given precision and scale. This can be useful for comparisons.
Trait Implementations§
Source§impl Add for &DecimalChunked
impl Add for &DecimalChunked
Source§type Output = Result<Logical<DecimalType, Int128Type>, PolarsError>
type Output = Result<Logical<DecimalType, Int128Type>, PolarsError>
The resulting type after applying the
+ operator.Source§impl Div for &DecimalChunked
impl Div for &DecimalChunked
Source§type Output = Result<Logical<DecimalType, Int128Type>, PolarsError>
type Output = Result<Logical<DecimalType, Int128Type>, PolarsError>
The resulting type after applying the
/ operator.Source§impl IntoSeries for DecimalChunked
impl IntoSeries for DecimalChunked
Source§impl LogicalType for DecimalChunked
impl LogicalType for DecimalChunked
Source§fn dtype(&self) -> &DataType
fn dtype(&self) -> &DataType
Get data type of
ChunkedArray.Source§fn get_any_value(&self, i: usize) -> PolarsResult<AnyValue<'_>>
fn get_any_value(&self, i: usize) -> PolarsResult<AnyValue<'_>>
Gets
AnyValue from LogicalTypefn cast_with_options( &self, dtype: &DataType, cast_options: CastOptions, ) -> PolarsResult<Series>
fn cast(&self, dtype: &DataType) -> PolarsResult<Series>
Source§impl Mul for &DecimalChunked
impl Mul for &DecimalChunked
Source§type Output = Result<Logical<DecimalType, Int128Type>, PolarsError>
type Output = Result<Logical<DecimalType, Int128Type>, PolarsError>
The resulting type after applying the
* operator.Source§impl Sub for &DecimalChunked
impl Sub for &DecimalChunked
Source§type Output = Result<Logical<DecimalType, Int128Type>, PolarsError>
type Output = Result<Logical<DecimalType, Int128Type>, PolarsError>
The resulting type after applying the
- operator.