(batch)
| 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) |
nothing calls this directly
no outgoing calls
no test coverage detected