Struct polars::datatypes::Schema [−][src]
pub struct Schema { /* fields omitted */ }
Implementations
impl Schema
[src]
impl Schema
[src]pub fn rename<I, J, T, S>(
&self,
old_names: I,
new_names: J
) -> Result<Schema, PolarsError> where
T: AsRef<str>,
S: AsRef<str>,
I: IntoIterator<Item = T>,
J: IntoIterator<Item = S>,
[src]
&self,
old_names: I,
new_names: J
) -> Result<Schema, PolarsError> where
T: AsRef<str>,
S: AsRef<str>,
I: IntoIterator<Item = T>,
J: IntoIterator<Item = S>,
pub fn new(fields: Vec<Field, Global>) -> Schema
[src]
pub fn len(&self) -> usize
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn fields(&self) -> &Vec<Field, Global>
[src]
Returns an immutable reference of the vector of Field
instances
pub fn field(&self, i: usize) -> Option<&Field>
[src]
Returns an immutable reference of a specific Field
instance selected using an
offset within the internal fields
vector
pub fn field_with_name(&self, name: &str) -> Result<&Field, PolarsError>
[src]
Returns an immutable reference of a specific Field
instance selected by name
pub fn index_of(&self, name: &str) -> Result<usize, PolarsError>
[src]
Find the index of the column with the given name
pub fn to_arrow(&self) -> Schema
[src]
pub fn try_merge(schemas: &[Schema]) -> Result<Schema, PolarsError>
[src]
pub fn column_with_name(&self, name: &str) -> Option<(usize, &Field)>
[src]
Trait Implementations
impl StructuralPartialEq for Schema
[src]
impl StructuralPartialEq for Schema
[src]Auto Trait Implementations
impl RefUnwindSafe for Schema
impl RefUnwindSafe for Schema
impl UnwindSafe for Schema
impl UnwindSafe for Schema
Blanket Implementations
impl<T, U> Cast<U> for T where
U: FromCast<T>,
impl<T, U> Cast<U> for T where
U: FromCast<T>,
pub fn cast(self) -> U
impl<T> FromCast<T> for T
impl<T> FromCast<T> for T
pub fn from_cast(t: T) -> T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,