polars-core 0.53.0

Core of the Polars DataFrame library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use serde::{Serialize, Serializer};

use crate::prelude::*;

// We don't use this internally (we call Series::serialize instead), but Rust users might need it.
impl<T: PolarsPhysicalType> Serialize for ChunkedArray<T> {
    fn serialize<S>(&self, serializer: S) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where
        S: Serializer,
    {
        self.clone().into_series().serialize(serializer)
    }
}