Skip to content

DataTypeExpr.Struct (StructNameSpace) ​

Namespace: Polars.CSharp

Properties & Indexers ​

PropertyTypeDescription
this[int index]DataTypeExprGet the DataType of field with a specific field index.
this[long index]DataTypeExprGet the DataType of field with a specific field index.
this[string name]DataTypeExprGet the DataType of field by name.

Instance Methods ​

FieldDataType ​

Get the DataType of field with a specific field name.

Get the DataType of field with a specific field index.

csharp
public DataTypeExpr FieldDataType(string name)
public DataTypeExpr FieldDataType(long index)

Parameters

NameTypeDescription
namestring-
indexlong-

FieldNames ​

Get the field names in a struct as a list.

csharp
public Expr FieldNames()

Released under the MIT License. Powered by the Polars Rust core & Apache Arrow.