polars_core::datatypes

Type Alias DecimalChunked

Source
pub type DecimalChunked = Logical<DecimalType, Int128Type>;
Available on crate feature dtype-decimal only.

Aliased Type§

struct DecimalChunked(pub ChunkedArray<Int128Type>, _, pub Option<DataType>);

Fields§

§0: ChunkedArray<Int128Type>§2: Option<DataType>

Implementations§

Source§

impl DecimalChunked

Source

pub fn precision(&self) -> Option<usize>

Source

pub fn scale(&self) -> usize

Source

pub fn to_scale(&self, scale: usize) -> PolarsResult<Cow<'_, Self>>

Trait Implementations§

Source§

impl Add for &DecimalChunked

Source§

type Output = Result<Logical<DecimalType, Int128Type>, PolarsError>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl Div for &DecimalChunked

Source§

type Output = Result<Logical<DecimalType, Int128Type>, PolarsError>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Self) -> Self::Output

Performs the / operation. Read more
Source§

impl IntoSeries for DecimalChunked

Source§

impl LogicalType for DecimalChunked

Source§

fn dtype(&self) -> &DataType

Get data type of ChunkedArray.
Source§

fn get_any_value(&self, i: usize) -> PolarsResult<AnyValue<'_>>

Source§

unsafe fn get_any_value_unchecked(&self, i: usize) -> AnyValue<'_>

Safety Read more
Source§

fn cast_with_options( &self, dtype: &DataType, cast_options: CastOptions, ) -> PolarsResult<Series>

Source§

fn cast(&self, dtype: &DataType) -> PolarsResult<Series>

Source§

impl Mul for &DecimalChunked

Source§

type Output = Result<Logical<DecimalType, Int128Type>, PolarsError>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Self) -> Self::Output

Performs the * operation. Read more
Source§

impl Sub for &DecimalChunked

Source§

type Output = Result<Logical<DecimalType, Int128Type>, PolarsError>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more