[][src]Enum polars::series::Series

pub enum Series {
    UInt8(ChunkedArray<UInt8Type>),
    UInt16(ChunkedArray<UInt16Type>),
    UInt32(ChunkedArray<UInt32Type>),
    UInt64(ChunkedArray<UInt64Type>),
    Int8(ChunkedArray<Int8Type>),
    Int16(ChunkedArray<Int16Type>),
    Int32(ChunkedArray<Int32Type>),
    Int64(ChunkedArray<Int64Type>),
    Float32(ChunkedArray<Float32Type>),
    Float64(ChunkedArray<Float64Type>),
    Utf8(ChunkedArray<Utf8Type>),
    Bool(ChunkedArray<BooleanType>),
    Date32(ChunkedArray<Date32Type>),
    Date64(ChunkedArray<Date64Type>),
    Time32Millisecond(Time32MillisecondChunked),
    Time32Second(Time32SecondChunked),
    Time64Nanosecond(ChunkedArray<Time64NanosecondType>),
    Time64Microsecond(ChunkedArray<Time64MicrosecondType>),
    DurationNanosecond(ChunkedArray<DurationNanosecondType>),
    DurationMicrosecond(DurationMicrosecondChunked),
    DurationMillisecond(DurationMillisecondChunked),
    DurationSecond(DurationSecondChunked),
    IntervalDayTime(IntervalDayTimeChunked),
    IntervalYearMonth(IntervalYearMonthChunked),
    TimestampNanosecond(TimestampNanosecondChunked),
    TimestampMicrosecond(TimestampMicrosecondChunked),
    TimestampMillisecond(TimestampMillisecondChunked),
    TimestampSecond(TimestampSecondChunked),
    LargeList(LargeListChunked),
}

Series

The columnar data type for a DataFrame. The Series enum consists of typed ChunkedArray's. To quickly cast a Series to a ChunkedArray you can call the method with the name of the type:

let s: Series = [1, 2, 3].iter().collect();
// Quickly obtain the ChunkedArray wrapped by the Series.
let chunked_array = s.i32().unwrap();

Arithmetic

You can do standard arithmetic on series.

let s: Series = [1, 2, 3].iter().collect();
let out_add = &s + &s;
let out_sub = &s - &s;
let out_div = &s / &s;
let out_mul = &s * &s;

Or with series and numbers.

let s: Series = (1..3).collect();
let out_add_one = &s + 1;
let out_multiply = &s * 10;

// Could not overload left hand side operator.
let out_divide = 1.div(&s);
let out_add = 1.add(&s);
let out_subtract = 1.sub(&s);
let out_multiply = 1.mul(&s);

Comparison

You can obtain boolean mask by comparing series.

use itertools::Itertools;
let s = Series::new("dollars", &[1, 2, 3]);
let mask = s.eq(1);
let valid = [true, false, false].iter();
assert!(mask
    .into_iter()
    .map(|opt_bool| opt_bool.unwrap()) // option, because series can be null
    .zip(valid)
    .all(|(a, b)| a == *b))

See all the comparison operators in the CmpOps trait

Iterators

The Series variants contain differently typed ChunkedArray's. These structs can be turned into iterators, making it possible to use any function/ closure you want on a Series.

These iterators return an Option<T> because the values of a series may be null.

use polars::prelude::*;
let pi = 3.14;
let s = Series::new("angle", [2f32 * pi, pi, 1.5 * pi].as_ref());
let s_cos: Series = s.f32()
                    .expect("series was not an f32 dtype")
                    .into_iter()
                    .map(|opt_angle| opt_angle.map(|angle| angle.cos()))
                    .collect();

Creation

Series can be create from different data structures. Below we'll show a few ways we can create a Series object.

// Series van be created from Vec's, slices and arrays
Series::new("boolean series", &vec![true, false, true]);
Series::new("int series", &[1, 2, 3]);
// And can be nullable
Series::new("got nulls", &[Some(1), None, Some(2)]);

// Series can also be collected from iterators
let from_iter: Series = (0..10)
    .into_iter()
    .collect();

Variants

Time32Millisecond(Time32MillisecondChunked)
Time32Second(Time32SecondChunked)
DurationMicrosecond(DurationMicrosecondChunked)
DurationMillisecond(DurationMillisecondChunked)
DurationSecond(DurationSecondChunked)
IntervalDayTime(IntervalDayTimeChunked)
IntervalYearMonth(IntervalYearMonthChunked)
TimestampNanosecond(TimestampNanosecondChunked)
TimestampMicrosecond(TimestampMicrosecondChunked)
TimestampMillisecond(TimestampMillisecondChunked)
TimestampSecond(TimestampSecondChunked)
LargeList(LargeListChunked)

Implementations

impl Series[src]

pub fn sum<T>(&self) -> Option<T> where
    T: NumCast + Zero + ToPrimitive
[src]

Returns None if the array is empty or only contains null values.

let s = Series::new("days", [1, 2, 3].as_ref());
assert_eq!(s.sum(), Some(6));

pub fn min<T>(&self) -> Option<T> where
    T: NumCast + Zero + ToPrimitive
[src]

Returns the minimum value in the array, according to the natural order. Returns an option because the array is nullable.

let s = Series::new("days", [1, 2, 3].as_ref());
assert_eq!(s.min(), Some(1));

pub fn max<T>(&self) -> Option<T> where
    T: NumCast + Zero + ToPrimitive
[src]

Returns the maximum value in the array, according to the natural order. Returns an option because the array is nullable.

let s = Series::new("days", [1, 2, 3].as_ref());
assert_eq!(s.max(), Some(3));

pub fn mean<T>(&self) -> Option<T> where
    T: NumCast + Zero + ToPrimitive + Div<Output = T>, 
[src]

impl Series[src]

pub fn array_data(&self) -> Vec<ArrayDataRef>[src]

Get Arrow ArrayData

pub fn from_chunked_array<T: PolarsDataType>(ca: ChunkedArray<T>) -> Self[src]

pub fn chunk_lengths(&self) -> &Vec<usize>[src]

Get the lengths of the underlying chunks

pub fn name(&self) -> &str[src]

Name of series.

pub fn rename(&mut self, name: &str) -> &mut Self[src]

Rename series.

pub fn field(&self) -> &Field[src]

Get field (used in schema)

pub fn dtype(&self) -> &ArrowDataType[src]

Get datatype of series.

pub fn chunks(&self) -> &Vec<ArrayRef>[src]

Underlying chunks.

pub fn n_chunks(&self) -> usize[src]

No. of chunks

pub fn i8(&self) -> Result<&Int8Chunked>[src]

pub fn i16(&self) -> Result<&Int16Chunked>[src]

pub fn i32(&self) -> Result<&Int32Chunked>[src]

Unpack to ChunkedArray

let s: Series = [1, 2, 3].iter().collect();
let s_squared: Series = s.i32()
    .unwrap()
    .into_iter()
    .map(|opt_v| {
        match opt_v {
            Some(v) => Some(v * v),
            None => None, // null value
        }
}).collect();

pub fn i64(&self) -> Result<&Int64Chunked>[src]

Unpack to ChunkedArray

pub fn f32(&self) -> Result<&Float32Chunked>[src]

Unpack to ChunkedArray

pub fn f64(&self) -> Result<&Float64Chunked>[src]

Unpack to ChunkedArray

pub fn u8(&self) -> Result<&UInt8Chunked>[src]

Unpack to ChunkedArray

pub fn u16(&self) -> Result<&UInt16Chunked>[src]

Unpack to ChunkedArray

pub fn u32(&self) -> Result<&UInt32Chunked>[src]

Unpack to ChunkedArray

pub fn u64(&self) -> Result<&UInt64Chunked>[src]

Unpack to ChunkedArray

pub fn bool(&self) -> Result<&BooleanChunked>[src]

Unpack to ChunkedArray

pub fn utf8(&self) -> Result<&Utf8Chunked>[src]

Unpack to ChunkedArray

pub fn date32(&self) -> Result<&Date32Chunked>[src]

Unpack to ChunkedArray

pub fn date64(&self) -> Result<&Date64Chunked>[src]

Unpack to ChunkedArray

pub fn time32_millisecond(&self) -> Result<&Time32MillisecondChunked>[src]

Unpack to ChunkedArray

pub fn time32_second(&self) -> Result<&Time32SecondChunked>[src]

Unpack to ChunkedArray

pub fn time64_nanosecond(&self) -> Result<&Time64NanosecondChunked>[src]

Unpack to ChunkedArray

pub fn time64_microsecond(&self) -> Result<&Time64MicrosecondChunked>[src]

Unpack to ChunkedArray

pub fn duration_nanosecond(&self) -> Result<&DurationNanosecondChunked>[src]

Unpack to ChunkedArray

pub fn duration_microsecond(&self) -> Result<&DurationMicrosecondChunked>[src]

Unpack to ChunkedArray

pub fn duration_millisecond(&self) -> Result<&DurationMillisecondChunked>[src]

Unpack to ChunkedArray

pub fn duration_second(&self) -> Result<&DurationSecondChunked>[src]

Unpack to ChunkedArray

pub fn timestamp_nanosecond(&self) -> Result<&TimestampNanosecondChunked>[src]

Unpack to ChunkedArray

pub fn timestamp_microsecond(&self) -> Result<&TimestampMicrosecondChunked>[src]

Unpack to ChunkedArray

pub fn timestamp_millisecond(&self) -> Result<&TimestampMillisecondChunked>[src]

Unpack to ChunkedArray

pub fn timestamp_second(&self) -> Result<&TimestampSecondChunked>[src]

Unpack to ChunkedArray

pub fn interval_daytime(&self) -> Result<&IntervalDayTimeChunked>[src]

Unpack to ChunkedArray

pub fn interval_year_month(&self) -> Result<&IntervalYearMonthChunked>[src]

Unpack to ChunkedArray

pub fn large_list(&self) -> Result<&LargeListChunked>[src]

Unpack to ChunkedArray

pub fn append_array(&mut self, other: ArrayRef) -> Result<&mut Self>[src]

pub fn limit(&self, num_elements: usize) -> Result<Self>[src]

Take num_elements from the top as a zero copy view.

pub fn slice(&self, offset: usize, length: usize) -> Result<Self>[src]

Get a zero copy view of the data.

pub fn append(&mut self, other: &Self) -> Result<&mut Self>[src]

Append a Series of the same type in place.

pub fn filter<T: AsRef<BooleanChunked>>(&self, filter: T) -> Result<Self>[src]

Filter by boolean mask. This operation clones data.

pub fn take_iter(
    &self,
    iter: impl Iterator<Item = usize>,
    capacity: Option<usize>
) -> Result<Self>
[src]

Take by index from an iterator. This operation clones the data.

pub unsafe fn take_iter_unchecked(
    &self,
    iter: impl Iterator<Item = usize>,
    capacity: Option<usize>
) -> Self
[src]

Take by index from an iterator. This operation clones the data.

pub unsafe fn take_opt_iter_unchecked(
    &self,
    iter: impl Iterator<Item = Option<usize>>,
    capacity: Option<usize>
) -> Self
[src]

Take by index from an iterator. This operation clones the data.

pub fn take_opt_iter(
    &self,
    iter: impl Iterator<Item = Option<usize>>,
    capacity: Option<usize>
) -> Result<Self>
[src]

Take by index from an iterator. This operation clones the data.

pub fn take<T: AsTakeIndex>(&self, indices: &T) -> Result<Self>[src]

Take by index. This operation is clone.

pub fn len(&self) -> usize[src]

Get length of series.

pub fn rechunk(&self, chunk_lengths: Option<&[usize]>) -> Result<Self>[src]

Aggregate all chunks to a contiguous array of memory.

pub fn head(&self, length: Option<usize>) -> Self[src]

Get the head of the Series.

pub fn tail(&self, length: Option<usize>) -> Self[src]

Get the tail of the Series.

pub fn expand_at_index(&self, index: usize, length: usize) -> Self[src]

Create a new Series filled with values at that index.

Example

use polars::prelude::*;
let s = Series::new("a", [0i32, 1, 8]);
let expanded = s.expand_at_index(2, 4);
assert_eq!(Vec::from(expanded.i32().unwrap()), &[Some(8), Some(8), Some(8), Some(8)])

pub fn cast<N>(&self) -> Result<Self> where
    N: PolarsDataType
[src]

Cast to some primitive type.

pub fn cast_with_arrow_datatype(
    &self,
    data_type: &ArrowDataType
) -> Result<Self>
[src]

pub fn unpack<N>(&self) -> Result<&ChunkedArray<N>> where
    N: PolarsDataType
[src]

Get the ChunkedArray for some PolarsDataType

pub fn get(&self, index: usize) -> AnyType<'_>[src]

Get a single value by index. Don't use this operation for loops as a runtime cast is needed for every iteration.

pub fn sort_in_place(&mut self, reverse: bool) -> &mut Self[src]

Sort in place.

pub fn sort(&self, reverse: bool) -> Self[src]

pub fn argsort(&self, reverse: bool) -> Vec<usize>[src]

Retrieve the indexes needed for a sort.

pub fn null_count(&self) -> usize[src]

Count the null values.

pub fn unique(&self) -> Self[src]

Get unique values in the Series.

pub fn arg_unique(&self) -> Vec<usize>[src]

Get first indexes of unique values.

pub fn is_null(&self) -> BooleanChunked[src]

Get a mask of the null values.

pub fn is_not_null(&self) -> BooleanChunked[src]

Get a mask of the non-null values.

pub fn null_bits(&self) -> Vec<(usize, Option<Buffer>)>[src]

Get the bits that represent the null values of the underlying ChunkedArray

pub fn reverse(&self) -> Self[src]

return a Series in reversed order

pub fn as_single_ptr(&mut self) -> usize[src]

Rechunk and return a pointer to the start of the Series. Only implemented for numeric types

pub fn shift(&self, periods: i32) -> Result<Self>[src]

Shift the values by a given period and fill the parts that will be empty due to this operation with Nones.

NOTE: If you want to fill the Nones with a value use the shift operation on ChunkedArray<T>.

Example

fn example() -> Result<()> {
    let s = Series::new("series", &[1, 2, 3]);

    let shifted = s.shift(1)?;
    assert_eq!(Vec::from(shifted.i32()?), &[None, Some(1), Some(2)]);

    let shifted = s.shift(-1)?;
    assert_eq!(Vec::from(shifted.i32()?), &[Some(2), Some(3), None]);

    let shifted = s.shift(2)?;
    assert_eq!(Vec::from(shifted.i32()?), &[None, None, Some(1)]);

    Ok(())
}
example();

pub fn fill_none(&self, strategy: FillNoneStrategy) -> Result<Self>[src]

Replace None values with one of the following strategies:

  • Forward fill (replace None with the previous value)
  • Backward fill (replace None with the next value)
  • Mean fill (replace None with the mean of the whole array)
  • Min fill (replace None with the minimum of the whole array)
  • Max fill (replace None with the maximum of the whole array)

NOTE: If you want to fill the Nones with a value use the fill_none operation on ChunkedArray<T>.

Example

fn example() -> Result<()> {
    let s = Series::new("some_missing", &[Some(1), None, Some(2)]);

    let filled = s.fill_none(FillNoneStrategy::Forward)?;
    assert_eq!(Vec::from(filled.i32()?), &[Some(1), Some(1), Some(2)]);

    let filled = s.fill_none(FillNoneStrategy::Backward)?;
    assert_eq!(Vec::from(filled.i32()?), &[Some(1), Some(2), Some(2)]);

    let filled = s.fill_none(FillNoneStrategy::Min)?;
    assert_eq!(Vec::from(filled.i32()?), &[Some(1), Some(1), Some(2)]);

    let filled = s.fill_none(FillNoneStrategy::Max)?;
    assert_eq!(Vec::from(filled.i32()?), &[Some(1), Some(2), Some(2)]);

    let filled = s.fill_none(FillNoneStrategy::Mean)?;
    assert_eq!(Vec::from(filled.i32()?), &[Some(1), Some(1), Some(2)]);

    Ok(())
}
example();

pub fn zip_with(&self, mask: &BooleanChunked, other: &Series) -> Result<Self>[src]

Create a new ChunkedArray with values from self where the mask evaluates true and values from other where the mask evaluates false

impl Series[src]

pub fn series_equal(&self, other: &Series) -> bool[src]

Check if series are equal. Note that None == None evaluates to false

pub fn series_equal_missing(&self, other: &Series) -> bool[src]

Check if all values in series are equal where None == None evaluates to true.

Trait Implementations

impl<'_> Add<&'_ Series> for &'_ Series[src]

type Output = Series

The resulting type after applying the + operator.

impl Add<Series> for Series[src]

type Output = Self

The resulting type after applying the + operator.

impl<T, '_> Add<T> for &'_ Series where
    T: Num + NumCast
[src]

type Output = Series

The resulting type after applying the + operator.

impl<T> Add<T> for Series where
    T: Num + NumCast
[src]

type Output = Self

The resulting type after applying the + operator.

impl AsMut<ChunkedArray<BooleanType>> for Series[src]

impl AsMut<ChunkedArray<Date32Type>> for Series[src]

impl AsMut<ChunkedArray<Date64Type>> for Series[src]

impl AsMut<ChunkedArray<DurationMicrosecondType>> for Series[src]

impl AsMut<ChunkedArray<DurationMillisecondType>> for Series[src]

impl AsMut<ChunkedArray<DurationNanosecondType>> for Series[src]

impl AsMut<ChunkedArray<DurationSecondType>> for Series[src]

impl AsMut<ChunkedArray<Float32Type>> for Series[src]

impl AsMut<ChunkedArray<Float64Type>> for Series[src]

impl AsMut<ChunkedArray<Int16Type>> for Series[src]

impl AsMut<ChunkedArray<Int32Type>> for Series[src]

impl AsMut<ChunkedArray<Int64Type>> for Series[src]

impl AsMut<ChunkedArray<Int8Type>> for Series[src]

impl AsMut<ChunkedArray<IntervalDayTimeType>> for Series[src]

impl AsMut<ChunkedArray<IntervalYearMonthType>> for Series[src]

impl AsMut<ChunkedArray<LargeListType>> for Series[src]

impl AsMut<ChunkedArray<Time32MillisecondType>> for Series[src]

impl AsMut<ChunkedArray<Time32SecondType>> for Series[src]

impl AsMut<ChunkedArray<Time64MicrosecondType>> for Series[src]

impl AsMut<ChunkedArray<Time64NanosecondType>> for Series[src]

impl AsMut<ChunkedArray<TimestampMicrosecondType>> for Series[src]

impl AsMut<ChunkedArray<TimestampMillisecondType>> for Series[src]

impl AsMut<ChunkedArray<TimestampNanosecondType>> for Series[src]

impl AsMut<ChunkedArray<TimestampSecondType>> for Series[src]

impl AsMut<ChunkedArray<UInt16Type>> for Series[src]

impl AsMut<ChunkedArray<UInt32Type>> for Series[src]

impl AsMut<ChunkedArray<UInt64Type>> for Series[src]

impl AsMut<ChunkedArray<UInt8Type>> for Series[src]

impl AsMut<ChunkedArray<Utf8Type>> for Series[src]

impl AsRef<ChunkedArray<BooleanType>> for Series[src]

impl AsRef<ChunkedArray<Date32Type>> for Series[src]

impl AsRef<ChunkedArray<Date64Type>> for Series[src]

impl AsRef<ChunkedArray<DurationMicrosecondType>> for Series[src]

impl AsRef<ChunkedArray<DurationMillisecondType>> for Series[src]

impl AsRef<ChunkedArray<DurationNanosecondType>> for Series[src]

impl AsRef<ChunkedArray<DurationSecondType>> for Series[src]

impl AsRef<ChunkedArray<Float32Type>> for Series[src]

impl AsRef<ChunkedArray<Float64Type>> for Series[src]

impl AsRef<ChunkedArray<Int16Type>> for Series[src]

impl AsRef<ChunkedArray<Int32Type>> for Series[src]

impl AsRef<ChunkedArray<Int64Type>> for Series[src]

impl AsRef<ChunkedArray<Int8Type>> for Series[src]

impl AsRef<ChunkedArray<IntervalDayTimeType>> for Series[src]

impl AsRef<ChunkedArray<IntervalYearMonthType>> for Series[src]

impl AsRef<ChunkedArray<LargeListType>> for Series[src]

impl AsRef<ChunkedArray<Time32MillisecondType>> for Series[src]

impl AsRef<ChunkedArray<Time32SecondType>> for Series[src]

impl AsRef<ChunkedArray<Time64MicrosecondType>> for Series[src]

impl AsRef<ChunkedArray<Time64NanosecondType>> for Series[src]

impl AsRef<ChunkedArray<TimestampMicrosecondType>> for Series[src]

impl AsRef<ChunkedArray<TimestampMillisecondType>> for Series[src]

impl AsRef<ChunkedArray<TimestampNanosecondType>> for Series[src]

impl AsRef<ChunkedArray<TimestampSecondType>> for Series[src]

impl AsRef<ChunkedArray<UInt16Type>> for Series[src]

impl AsRef<ChunkedArray<UInt32Type>> for Series[src]

impl AsRef<ChunkedArray<UInt64Type>> for Series[src]

impl AsRef<ChunkedArray<UInt8Type>> for Series[src]

impl AsRef<ChunkedArray<Utf8Type>> for Series[src]

impl<'_> ChunkCompare<&'_ Series> for Series[src]

fn eq(&self, rhs: &Series) -> BooleanChunked[src]

Create a boolean mask by checking for equality.

fn neq(&self, rhs: &Series) -> BooleanChunked[src]

Create a boolean mask by checking for inequality.

fn gt(&self, rhs: &Series) -> BooleanChunked[src]

Create a boolean mask by checking if lhs > rhs.

fn gt_eq(&self, rhs: &Series) -> BooleanChunked[src]

Create a boolean mask by checking if lhs >= rhs.

fn lt(&self, rhs: &Series) -> BooleanChunked[src]

Create a boolean mask by checking if lhs < rhs.

fn lt_eq(&self, rhs: &Series) -> BooleanChunked[src]

Create a boolean mask by checking if lhs <= rhs.

impl<'_> ChunkCompare<&'_ str> for Series[src]

impl<Rhs> ChunkCompare<Rhs> for Series where
    Rhs: NumComp
[src]

impl<'_> ChunkFillNone<&'_ Series> for LargeListChunked[src]

impl ChunkFull<Series> for LargeListChunked[src]

impl ChunkShift<LargeListType, Series> for LargeListChunked[src]

impl Clone for Series[src]

impl Debug for Series[src]

impl Default for Series[src]

impl Display for Series[src]

impl<'_> Div<&'_ Series> for &'_ Series[src]

type Output = Series

The resulting type after applying the / operator.

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

let s: Series = [1, 2, 3].iter().collect();
let out = &s / &s;

impl Div<Series> for Series[src]

type Output = Self

The resulting type after applying the / operator.

impl<T, '_> Div<T> for &'_ Series where
    T: Num + NumCast
[src]

type Output = Series

The resulting type after applying the / operator.

impl<T> Div<T> for Series where
    T: Num + NumCast
[src]

type Output = Self

The resulting type after applying the / operator.

impl<'a> From<&'a Series> for &'a UInt8Chunked[src]

impl<'a> From<&'a Series> for &'a UInt16Chunked[src]

impl<'a> From<&'a Series> for &'a BooleanChunked[src]

impl<'a> From<&'a Series> for &'a Utf8Chunked[src]

impl<'a> From<&'a Series> for &'a Date32Chunked[src]

impl<'a> From<&'a Series> for &'a Date64Chunked[src]

impl<'a> From<&'a Series> for &'a Time32MillisecondChunked[src]

impl<'a> From<&'a Series> for &'a Time32SecondChunked[src]

impl<'a> From<&'a Series> for &'a Time64MicrosecondChunked[src]

impl<'a> From<&'a Series> for &'a Time64NanosecondChunked[src]

impl<'a> From<&'a Series> for &'a DurationMillisecondChunked[src]

impl<'a> From<&'a Series> for &'a DurationSecondChunked[src]

impl<'a> From<&'a Series> for &'a UInt32Chunked[src]

impl<'a> From<&'a Series> for &'a DurationMicrosecondChunked[src]

impl<'a> From<&'a Series> for &'a DurationNanosecondChunked[src]

impl<'a> From<&'a Series> for &'a TimestampMillisecondChunked[src]

impl<'a> From<&'a Series> for &'a TimestampSecondChunked[src]

impl<'a> From<&'a Series> for &'a TimestampMicrosecondChunked[src]

impl<'a> From<&'a Series> for &'a TimestampNanosecondChunked[src]

impl<'a> From<&'a Series> for &'a IntervalDayTimeChunked[src]

impl<'a> From<&'a Series> for &'a IntervalYearMonthChunked[src]

impl<'a> From<&'a Series> for &'a LargeListChunked[src]

impl<'a> From<&'a Series> for &'a UInt64Chunked[src]

impl<'a> From<&'a Series> for &'a Int8Chunked[src]

impl<'a> From<&'a Series> for &'a Int16Chunked[src]

impl<'a> From<&'a Series> for &'a Int32Chunked[src]

impl<'a> From<&'a Series> for &'a Int64Chunked[src]

impl<'a> From<&'a Series> for &'a Float32Chunked[src]

impl<'a> From<&'a Series> for &'a Float64Chunked[src]

impl<'_> From<(&'_ str, Arc<dyn Array + 'static>)> for Series[src]

impl<T> From<ChunkedArray<T>> for Series where
    T: PolarsDataType
[src]

impl<'a> FromIterator<&'a Series> for LargeListChunked[src]

impl<'a> FromIterator<&'a Series> for Series[src]

impl<'a> FromIterator<&'a bool> for Series[src]

impl<'a> FromIterator<&'a f32> for Series[src]

impl<'a> FromIterator<&'a f64> for Series[src]

impl<'a> FromIterator<&'a i16> for Series[src]

impl<'a> FromIterator<&'a i32> for Series[src]

impl<'a> FromIterator<&'a i64> for Series[src]

impl<'a> FromIterator<&'a i8> for Series[src]

impl<'a> FromIterator<&'a str> for Series[src]

impl<'a> FromIterator<&'a u16> for Series[src]

impl<'a> FromIterator<&'a u32> for Series[src]

impl<'a> FromIterator<&'a u64> for Series[src]

impl<'a> FromIterator<&'a u8> for Series[src]

impl FromIterator<Option<Series>> for Series[src]

impl FromIterator<Option<bool>> for Series[src]

impl FromIterator<Option<f32>> for Series[src]

impl FromIterator<Option<f64>> for Series[src]

impl FromIterator<Option<i16>> for Series[src]

impl FromIterator<Option<i32>> for Series[src]

impl FromIterator<Option<i64>> for Series[src]

impl FromIterator<Option<i8>> for Series[src]

impl FromIterator<Option<u16>> for Series[src]

impl FromIterator<Option<u32>> for Series[src]

impl FromIterator<Option<u64>> for Series[src]

impl FromIterator<Option<u8>> for Series[src]

impl FromIterator<Series> for LargeListChunked[src]

impl FromIterator<Series> for DataFrame[src]

fn from_iter<T: IntoIterator<Item = Series>>(iter: T) -> Self[src]

Panics

Panics if Series have different lengths.

impl FromIterator<Series> for Series[src]

impl FromIterator<bool> for Series[src]

impl FromIterator<f32> for Series[src]

impl FromIterator<f64> for Series[src]

impl FromIterator<i16> for Series[src]

impl FromIterator<i32> for Series[src]

impl FromIterator<i64> for Series[src]

impl FromIterator<i8> for Series[src]

impl FromIterator<u16> for Series[src]

impl FromIterator<u32> for Series[src]

impl FromIterator<u64> for Series[src]

impl FromIterator<u8> for Series[src]

impl IntoSeries for Series[src]

impl<'_> Mul<&'_ Series> for &'_ Series[src]

type Output = Series

The resulting type after applying the * operator.

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

let s: Series = [1, 2, 3].iter().collect();
let out = &s * &s;

impl Mul<Series> for Series[src]

type Output = Self

The resulting type after applying the * operator.

impl<T, '_> Mul<T> for &'_ Series where
    T: Num + NumCast
[src]

type Output = Series

The resulting type after applying the * operator.

impl<T> Mul<T> for Series where
    T: Num + NumCast
[src]

type Output = Self

The resulting type after applying the * operator.

impl<'a, T: AsRef<[&'a str]>> NamedFrom<T, [&'a str]> for Series[src]

impl<'a, T: AsRef<[Option<&'a str>]>> NamedFrom<T, [Option<&'a str>]> for Series[src]

impl<T: AsRef<[Option<String>]>> NamedFrom<T, [Option<String>]> for Series[src]

impl<T: AsRef<[Option<bool>]>> NamedFrom<T, [Option<bool>]> for Series[src]

impl<T: AsRef<[Option<f32>]>> NamedFrom<T, [Option<f32>]> for Series[src]

impl<T: AsRef<[Option<f64>]>> NamedFrom<T, [Option<f64>]> for Series[src]

impl<T: AsRef<[Option<i16>]>> NamedFrom<T, [Option<i16>]> for Series[src]

impl<T: AsRef<[Option<i32>]>> NamedFrom<T, [Option<i32>]> for Series[src]

impl<T: AsRef<[Option<i64>]>> NamedFrom<T, [Option<i64>]> for Series[src]

impl<T: AsRef<[Option<i8>]>> NamedFrom<T, [Option<i8>]> for Series[src]

impl<T: AsRef<[Option<u16>]>> NamedFrom<T, [Option<u16>]> for Series[src]

impl<T: AsRef<[Option<u32>]>> NamedFrom<T, [Option<u32>]> for Series[src]

impl<T: AsRef<[Option<u64>]>> NamedFrom<T, [Option<u64>]> for Series[src]

impl<T: AsRef<[Option<u8>]>> NamedFrom<T, [Option<u8>]> for Series[src]

impl<T: AsRef<[String]>> NamedFrom<T, [String]> for Series[src]

impl<T: AsRef<[bool]>> NamedFrom<T, [bool]> for Series[src]

impl<T: AsRef<[f32]>> NamedFrom<T, [f32]> for Series[src]

impl<T: AsRef<[f64]>> NamedFrom<T, [f64]> for Series[src]

impl<T: AsRef<[i16]>> NamedFrom<T, [i16]> for Series[src]

impl<T: AsRef<[i32]>> NamedFrom<T, [i32]> for Series[src]

impl<T: AsRef<[i64]>> NamedFrom<T, [i64]> for Series[src]

impl<T: AsRef<[i8]>> NamedFrom<T, [i8]> for Series[src]

impl<T: AsRef<[u16]>> NamedFrom<T, [u16]> for Series[src]

impl<T: AsRef<[u32]>> NamedFrom<T, [u32]> for Series[src]

impl<T: AsRef<[u64]>> NamedFrom<T, [u64]> for Series[src]

impl<T: AsRef<[u8]>> NamedFrom<T, [u8]> for Series[src]

impl<T: AsRef<[Series]>> NamedFrom<T, LargeListType> for Series[src]

impl<'_> Sub<&'_ Series> for &'_ Series[src]

type Output = Series

The resulting type after applying the - operator.

impl Sub<Series> for Series[src]

type Output = Self

The resulting type after applying the - operator.

impl<T, '_> Sub<T> for &'_ Series where
    T: Num + NumCast
[src]

type Output = Series

The resulting type after applying the - operator.

impl<T> Sub<T> for Series where
    T: Num + NumCast
[src]

type Output = Self

The resulting type after applying the - operator.

Auto Trait Implementations

impl !RefUnwindSafe for Series

impl Send for Series

impl Sync for Series

impl Unpin for Series

impl !UnwindSafe for Series

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> Cast<U> for T where
    U: FromCast<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> FromCast<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,