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

[Question]: Parsing method table failed to parse xlxs #1250

Open
water-2022 opened this issue Jun 24, 2024 · 4 comments
Open

[Question]: Parsing method table failed to parse xlxs #1250

water-2022 opened this issue Jun 24, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@water-2022
Copy link

Describe your problem

The error is as follows:

Traceback (most recent call last):
  File "/ragflow/rag/svr/task_executor.py", line 146, in build
    cks = chunker.chunk(row["name"], binary=binary, from_page=row["from_page"],
  File "/ragflow/rag/app/table.py", line 141, in chunk
    dfs = excel_parser(
  File "/ragflow/rag/app/table.py", line 66, in __call__
    res.append(pd.DataFrame(np.array(data), columns=headers))
  File "/usr/local/lib/python3.10/dist-packages/pandas/core/frame.py", line 816, in __init__
    mgr = ndarray_to_mgr(
  File "/usr/local/lib/python3.10/dist-packages/pandas/core/internals/construction.py", line 336, in ndarray_to_mgr
    _check_values_indices_shape_match(values, index, columns)
  File "/usr/local/lib/python3.10/dist-packages/pandas/core/internals/construction.py", line 420, in _check_values_indices_shape_match
    raise ValueError(f"Shape of passed values is {passed}, indices imply {implied}")
ValueError: Shape of passed values is (0, 1), indices imply (0, 7)
@water-2022 water-2022 added the question Further information is requested label Jun 24, 2024
@KevinHuSh
Copy link
Collaborator

Could you attach the file?

@KevinHuSh KevinHuSh added bug Something isn't working and removed question Further information is requested labels Jun 25, 2024
@water-2022
Copy link
Author

Could you attach the file?

The files are company property.

The Excel file contains an excessive number of sheets, and the table has some merged cells.

@KevinHuSh
Copy link
Collaborator

Could you mock up a sample that will fail.

@water-2022
Copy link
Author

water-2022 commented Jul 1, 2024

Could you mock up a sample that will fail.

@KevinHuSh This is a sample file.

1.xlsx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants