# Problem with Hugging face customised SQuad dataset

**URL:** <https://discuss.huggingface.co/t/problem-with-hugging-face-customised-squad-dataset/136560>\
**Category:** Beginners\
**Created:** [January 20, 2025, 3:40pm UTC](https://discuss.huggingface.co/t/problem-with-hugging-face-customised-squad-dataset/136560 "2025-01-20T15:40:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aurelie123](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@Aurelie123](https://discuss.huggingface.co/u/Aurelie123)\
**Post date:** [January 20, 2025, 3:40pm UTC](https://discuss.huggingface.co/t/problem-with-hugging-face-customised-squad-dataset/136560/1 "2025-01-20T15:40:25Z")

</div>

Hi,

I have created a custom dataset as csv file on a google sheet and the format is correct but when I uploaded it to hugging face the features answers says they are strings even though I copied exactly as per the original Squad dataset. In the original Squad dataset for the feature answers it says sequence and not strings like mine.

I wonder if anyone have ever came across this issues before ?

Thanks  
Aurelie

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [January 20, 2025, 4:15pm UTC](https://discuss.huggingface.co/t/problem-with-hugging-face-customised-squad-dataset/136560/2 "2025-01-20T16:15:01Z")

</div>

Perhaps this?

> [@How to create dataset from CSV to training Question answering？](https://discuss.huggingface.co/t/how-to-create-dataset-from-csv-to-training-question-answering/45851/4):
>
> You should be able to parse the second pattern with: pd.read\_csv(..., converters={"answers": lambda x: json.loads(x)})

---

<div class="post-metadata">

**Author:** ![Aurelie123](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@Aurelie123](https://discuss.huggingface.co/u/Aurelie123)\
**Post date:** [January 20, 2025, 5:17pm UTC](https://discuss.huggingface.co/t/problem-with-hugging-face-customised-squad-dataset/136560/3 "2025-01-20T17:17:38Z")

</div>

Thank you, I’ll have a look. I just uploaded the file to github where I saw the “” aka string elements, so right now I am removing by hand the “” and will download the file again from github as CSV and see if it works , if not I will try the other post .

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [January 20, 2025, 10:36pm UTC](https://discuss.huggingface.co/t/problem-with-hugging-face-customised-squad-dataset/136560/4 "2025-01-20T22:36:50Z")

</div>

As a last resort, you can specify the data format directly, but it would be better if it could be recognized automatically.

> **[Dataset features](https://huggingface.co/docs/datasets/about_dataset_features)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

---

<div class="post-metadata">

**Author:** ![Aurelie123](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@Aurelie123](https://discuss.huggingface.co/u/Aurelie123)\
**Post date:** [January 21, 2025, 4:40pm UTC](https://discuss.huggingface.co/t/problem-with-hugging-face-customised-squad-dataset/136560/5 "2025-01-21T16:40:53Z")

</div>

Thank you , very good I guess I will use that as I was unable to make the new CSV file working. It’s a bit odd that it’s being recognised as strings and not sequence but maybe that could be google sheets too and wasn’t sure how to make them a sequence in google sheet. Also I used a for loop to get the indexes and manually added them as at the moment i don’t have enough RAM on google colab unless i buy more which I might but for the sake of the small dataset I want to see if i can train it without more RAM. As regards to automatically update the csv file with a for loop , its not possible right now due to lack of RAM. It crashes half way.
