# Script to prepare load my own data into a DataSet

**URL:** <https://discuss.huggingface.co/t/script-to-prepare-load-my-own-data-into-a-dataset/17520>\
**Category:** 🤗Datasets\
**Created:** [May 4, 2022, 12:44pm UTC](https://discuss.huggingface.co/t/script-to-prepare-load-my-own-data-into-a-dataset/17520 "2022-05-04T12:44:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DavidSBatista](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/davidsbatista/32/40170_2.png) [@DavidSBatista](https://discuss.huggingface.co/u/DavidSBatista)\
**Post date:** [May 4, 2022, 12:44pm UTC](https://discuss.huggingface.co/t/script-to-prepare-load-my-own-data-into-a-dataset/17520/1 "2022-05-04T12:44:00Z")

</div>

Can someone point me to a tutorial, documentation/API, where I could see how to load my own data into a DataSet format so that I can use it for a text-classification task?

I’ve looked in tutorials and examples, but it’s always with an already prepared/baked standard dataset from the `datasets` package.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![stevhliu](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/stevhliu/32/18373_2.png) [@stevhliu](https://discuss.huggingface.co/u/stevhliu)\
**Post date:** [May 4, 2022, 4:06pm UTC](https://discuss.huggingface.co/t/script-to-prepare-load-my-own-data-into-a-dataset/17520/2 "2022-05-04T16:06:49Z")

</div>

Hi there! 🙂

The [Local and remote files](https://huggingface.co/docs/datasets/loading#local-and-remote-files) section of the documentation should help, depending on your data file format. For example, if you have just one `csv` file you can do:

```auto
from datasets import load_dataset
dataset = load_dataset('csv', data_files='my_file.csv')

```
