# ArrowTypeError in load\_dataset

**URL:** <https://discuss.huggingface.co/t/arrowtypeerror-in-load-dataset/42677>\
**Category:** 🤗Datasets\
**Created:** [June 9, 2023, 4:08pm UTC](https://discuss.huggingface.co/t/arrowtypeerror-in-load-dataset/42677 "2023-06-09T16:08:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![axel99andersson](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@axel99andersson](https://discuss.huggingface.co/u/axel99andersson)\
**Post date:** [June 9, 2023, 4:08pm UTC](https://discuss.huggingface.co/t/arrowtypeerror-in-load-dataset/42677/1 "2023-06-09T16:08:54Z")

</div>

Hello, I have a json file on the format:

```auto
[
   {
      "question": *question-text*
      "answer": *answer-text*
   },
   {
      "question": *question-text*
      "answer": *answer-text*
   },
   ...
]

```

I want to load this into a hugging face Dataset. I’ve tried to use the load\_dataset() function from datasets and the Dataset.from\_list() function but in both cases I’ve received ArrowTypeError. Anyone who know why and how I can resolve this?

---

<div class="post-metadata">

**Author:** ![mariosasko](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/mariosasko/32/31548_2.png) [@mariosasko](https://discuss.huggingface.co/u/mariosasko)\
**Post date:** [June 12, 2023, 7:35pm UTC](https://discuss.huggingface.co/t/arrowtypeerror-in-load-dataset/42677/2 "2023-06-12T19:35:52Z")

</div>

Hi! Can you paste the entire error stack trace?

Also, please ensure that all the dictionaries share the same set of keys (`"question"` and `"answer"`) and that the value types are the same (`str`) (no mixed type “column”)
