Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH-40428: [Python][CI] Fix dataset partition filter tests with pandas…
… nightly (#40429) ### Rationale for this change From debugging the failure, it seems this is due to pandas changing a filter operation to sometimes preserve a RangeIndex now instead of returning an Integer64Index. And the conversion to Arrow changes based on that (RangeIndex is metadata only by default, integer index becomes a column) Therefore making the tests more robust to ensure there is always at least one non-partition column in the DataFrame, so it doesn't depend on the index whether the result is empty or not. * GitHub Issue: #40428 Authored-by: Joris Van den Bossche <[email protected]> Signed-off-by: Joris Van den Bossche <[email protected]>
- Loading branch information