view_fields

view_fields#

NestedExtensionArray.view_fields(fields: str | list[str]) Self[source]#

Get a view of the extension array with the specified fields only

Parameters:

fields (str or list of str) – The name of the field or a list of names of the fields to include.

Returns:

The view of the array with only the specified fields.

Return type:

NestedExtensionArray