MCPcopy
hub / github.com/huggingface/datasets / field

Method field

src/datasets/table.py:381–392  ·  view source on GitHub ↗

Select a schema field by its column name or numeric index. Args: i (`Union[int, str]`): The index or name of the field to retrieve. Returns: `pyarrow.Field`

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

379 return self.table.to_reader(max_chunksize=max_chunksize)
380
381 def field(self, *args, **kwargs):
382 """
383 Select a schema field by its column name or numeric index.
384
385 Args:
386 i (`Union[int, str]`):
387 The index or name of the field to retrieve.
388
389 Returns:
390 `pyarrow.Field`
391 """
392 return self.table.field(*args, **kwargs)
393
394 def column(self, *args, **kwargs):
395 """

Callers 15

test_table_fieldFunction · 0.95
DatasetInfoClass · 0.80
_build_schemaMethod · 0.80
schemaMethod · 0.80
SplitInfoClass · 0.80
SplitGeneratorClass · 0.80
_storage_typeFunction · 0.80
array_castFunction · 0.80
cast_array_to_featureFunction · 0.80
embed_array_storageFunction · 0.80
cast_table_to_schemaFunction · 0.80
_visitFunction · 0.80

Calls

no outgoing calls

Tested by 10

test_table_fieldFunction · 0.76
test_always_nullableFunction · 0.64
test_csv_cast_imageFunction · 0.64
test_csv_cast_labelFunction · 0.64
test_text_cast_imageFunction · 0.64
arrow_file_file_formatFunction · 0.64