pyarrow.compute.MapLookupOptions

class pyarrow.compute.MapLookupOptions(query_key, occurrence)

Bases: _MapLookupOptions

Options for the map_lookup function.

Parameters:
query_keyScalar or Object can be converted to Scalar

The key to search for.

occurrencestr

The occurrence(s) to return from the Map Accepted values are “first”, “last”, or “all”.

__init__(self, query_key, occurrence)

Methods

__init__(self, query_key, occurrence)

deserialize(buf)

Deserialize options for a function.

serialize(self)

static deserialize(buf)

Deserialize options for a function.

Parameters:
bufBuffer

The buffer containing the data to deserialize.

serialize(self)