Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARROW-13784: [Python] Table.from_arrays should raise an error when ar…
…ray is empty but names is not We already check that the list of arrays and list of names should have the same length in `table.pxi`. For a special case when a list of arrays is of length 0 but length of list of names is greater than 0 the check fails. I changed the ordering of checks in `table.pxi` and added a test to `test_table.py`. Closes #11457 from AlenkaF/ARROW-13784 Authored-by: Alenka Frim <frim.alenka@gmail.com> Signed-off-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
- Loading branch information
1 parent
c8f882c
commit 98b0e99
Showing
2 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters