MCPcopy Create free account
hub / github.com/Kaggle/docker-python / some_func

Method some_func

tests/test_hf_datasets.py:9–11  ·  view source on GitHub ↗
(batch)

Source from the content-addressed store, hash-verified

7
8 def test_map(self):
9 def some_func(batch):
10 batch['label'] = 'foo'
11 return batch
12
13 df = datasets.Dataset.from_dict({'text': ['Kaggle rocks!']})
14 mapped_df = df.map(some_func)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected