# Loading Dataset with custom splits

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Floading-dataset-with-custom-splits%2F46547%3E%5C
**Category:** 🤗Datasets\
**Created:** [July 12, 2023, 7:43am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Floading-dataset-with-custom-splits%2F46547 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FAnanthZeke)%5C
**Post date:** [July 12, 2023, 7:43am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Floading-dataset-with-custom-splits%2F46547%2F1 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FYannAgora)%5C
**Post date:** [July 12, 2023, 1:45pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Floading-dataset-with-custom-splits%2F46547%2F2 "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)

```
