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

Method test_load_dataset

tests/test_hf_datasets.py:18–21  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

16 self.assertEqual('foo', mapped_df[0]['label'])
17
18 def test_load_dataset(self):
19 dataset = datasets.load_dataset("csv", data_files="/input/tests/data/train.csv")
20 full_data = pd.DataFrame(dataset['train'])
21 self.assertFalse(full_data.empty)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected