Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to convert pandas DataFrame to Arrow Table from file '/home/####/.cache/huggingface/hub/datasets--lovesnowbest--T-Eval/snapshots/af355ab2b62cdbae4262ac41c7529ffeae395012/data/instruct_v2.json' with error <class 'pyarrow.lib.ArrowInvalid'>: ('cannot mix list and non-list, non-null values', 'Conversion failed for column query_60_0_3 with type object') #61

Open
OfficerChul opened this issue Nov 3, 2024 · 0 comments

Comments

@OfficerChul
Copy link

Failed to convert pandas DataFrame to Arrow Table from file '/home/####/.cache/huggingface/hub/datasets--lovesnowbest--T-Eval/snapshots/af355ab2b62cdbae4262ac41c7529ffeae395012/data/instruct_v2.json' with error <class 'pyarrow.lib.ArrowInvalid'>: ('cannot mix list and non-list, non-null values', 'Conversion failed for column query_60_0_3 with type object')

I am getting the above error when I download the dataset from the huggingface.

It seems like the error occurs on the first line of instruct_v2.json file which is the following:

  "query_60_0_3": {
    "template": {
      "thought": "goal",
      "action": "name",
      "args": "args"
    },
    "meta_data": {
      "response_format": "json"
    },
    "ground_truth": {
      "action": "FilmDouban.print_detail",
      "args": {
        "film_name": "驯龙高手"
      }
    },
    "origin_prompt": [
      {
        "role": "system",
        "content": "You have access to the following API:\n{'name': 'FilmDouban.print_detail', 'description': 'prints the details of a movie, giving its name', 'required_parameters': [{'name': 'film_name', 'type': 'STRING', 'description': \"target movie's name, must be in Chinese\"}], 'optional_parameters': [], 'return_data': [{'name': 'description', 'description': 'the description of the movie'}]}\nPlease directly generate the response in JSON format. Do NOT add comments (//) in the response.\n```\n{\n    // goal to call this action\n    \"goal\": string;\n    // api name to call\n    \"name\": string;\n    // input params required by current action\n    \"args\": Record<string, any>;\n}\n```"
      },
      {
        "role": "user",
        "content": "Call the function FilmDouban.print_detail with the parameter as follows: 'film_name' is '驯龙高手'."
      }
    ]
  }

请回答这个问题,谢谢。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant