pub struct ListSeries { /* private fields */ }Expand description
表示包含其他 Series 的列表类型 Series
ListSeries 允许在 DataFrame 的单个列中存储复杂的嵌套数据结构。 每个元素本身就是一个 Series,支持不同长度的子 Series。
§特性
- 支持嵌套的数据结构
- 内部 Series 可以有不同的长度
- 统一的内部元素类型约束
- 完整的 SeriesTrait 实现
Implementations§
Source§impl ListSeries
impl ListSeries
Sourcepub fn new(
name: String,
data: Vec<Option<Box<dyn SeriesTrait>>>,
inner_dtype: DataType,
) -> Self
pub fn new( name: String, data: Vec<Option<Box<dyn SeriesTrait>>>, inner_dtype: DataType, ) -> Self
Sourcepub fn get_inner_series(&self, index: usize) -> Option<&dyn SeriesTrait>
pub fn get_inner_series(&self, index: usize) -> Option<&dyn SeriesTrait>
Trait Implementations§
Source§impl Clone for ListSeries
impl Clone for ListSeries
Source§fn clone(&self) -> ListSeries
fn clone(&self) -> ListSeries
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ListSeries
impl Debug for ListSeries
Source§impl Display for ListSeries
impl Display for ListSeries
Source§impl SeriesTrait for ListSeries
impl SeriesTrait for ListSeries
Source§fn series_equal(&self, other: &dyn SeriesTrait) -> bool
fn series_equal(&self, other: &dyn SeriesTrait) -> bool
Compares this ListSeries with another SeriesTrait object for equality.
Source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
将 Series 转换为可变的 Any trait 对象
Source§fn filter(&self, mask: &Series<bool>) -> AxionResult<Box<dyn SeriesTrait>>
fn filter(&self, mask: &Series<bool>) -> AxionResult<Box<dyn SeriesTrait>>
根据布尔掩码过滤 Series Read more
Source§fn take_indices(&self, indices: &[usize]) -> AxionResult<Box<dyn SeriesTrait>>
fn take_indices(&self, indices: &[usize]) -> AxionResult<Box<dyn SeriesTrait>>
根据索引列表选取元素 Read more
Source§fn take_indices_option(
&self,
indices: &[Option<usize>],
) -> AxionResult<Box<dyn SeriesTrait>>
fn take_indices_option( &self, indices: &[Option<usize>], ) -> AxionResult<Box<dyn SeriesTrait>>
根据可选索引列表选取元素 Read more
Source§fn get_as_f64(&self, index: usize) -> AxionResult<Option<f64>>
fn get_as_f64(&self, index: usize) -> AxionResult<Option<f64>>
尝试将指定索引处的值转换为 f64 Read more
Auto Trait Implementations§
impl Freeze for ListSeries
impl !RefUnwindSafe for ListSeries
impl Send for ListSeries
impl Sync for ListSeries
impl Unpin for ListSeries
impl !UnwindSafe for ListSeries
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more