# Loading Dataset with custom splits

**URL:** <https://discuss.huggingface.co/t/loading-dataset-with-custom-splits/46547>\
**Category:** 🤗Datasets\
**Created:** [July 12, 2023, 7:43am UTC](https://discuss.huggingface.co/t/loading-dataset-with-custom-splits/46547 "2023-07-12T07:43:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AnanthZeke](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/ananthzeke/32/48678_2.png) [@AnanthZeke](https://discuss.huggingface.co/u/AnanthZeke)\
**Post date:** [July 12, 2023, 7:43am UTC](https://discuss.huggingface.co/t/loading-dataset-with-custom-splits/46547/1 "2023-07-12T07:43:21Z")

</div>

Is there any way to load datasets with custom splits ?  
For example : load\_dataset(‘csv’,data\_files=[‘myfile1.csv’,‘myfile2.csv’],splits=[‘csv1’,‘csv2’]))  
Instead of “train, test, and validation,” we can have multiple splits with custom names.

---

<div class="post-metadata">

**Author:** ![YannAgora](https://avatars.discourse-cdn.com/v4/letter/y/c0e974/32.png) [@YannAgora](https://discuss.huggingface.co/u/YannAgora)\
**Post date:** [July 12, 2023, 1:45pm UTC](https://discuss.huggingface.co/t/loading-dataset-with-custom-splits/46547/2 "2023-07-12T13:45:13Z")

</div>

Hello 👋

Something like that should work

```auto
data_files = {"csv1": "myfile1.csv", "csv2": "myfile2.csv"}
dataset = load_dataset("namespace/your_dataset_name", data_files=data_files)

```
