pyarrow.dataset.field#
- pyarrow.dataset.field(*name_or_index)[source]#
Reference a column of the dataset.
Stores only the field’s name. Type and other information is known only whenthe expression is bound to a dataset having an explicit scheme.
Nested references are allowed by passing multiple names or a tuple ofnames. For example
('foo','bar')references the field named “bar”inside the field named “foo”.- Parameters:
- Returns:
- field_expr
Expression Reference to the given field
- field_expr
Examples
>>>importpyarrow.computeaspc>>>pc.field("a")<pyarrow.compute.Expression a>>>>pc.field(1)<pyarrow.compute.Expression FieldPath(1)>>>>pc.field(("a","b"))<pyarrow.compute.Expression FieldRef.Nested(FieldRef.Name(a) ...>>>pc.field("a","b")<pyarrow.compute.Expression FieldRef.Nested(FieldRef.Name(a) ...
On this page

