pyarrow.lib.Field

class pyarrow.lib.Field

Bases: object

Represents a named field, with a data type, nullability, and optional metadata

Notes

Do not use this class’s constructor directly; use pyarrow.field

__init__()

Initialize self. See help(type(self)) for accurate signature.

Methods

add_metadata(self, dict metadata) Add metadata as dict of string keys and values to Field
equals(self, Field other) Test if this field is equal to the other
remove_metadata(self) Create new field without metadata, if any
add_metadata(self, dict metadata)

Add metadata as dict of string keys and values to Field

Parameters:metadata (dict) – Keys and values must be string-like / coercible to bytes
Returns:field (pyarrow.Field)
equals(self, Field other)

Test if this field is equal to the other

metadata
name
nullable
remove_metadata(self)

Create new field without metadata, if any

Returns:field (pyarrow.Field)
type