-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
GH-35490: [Python] Interchange protocol: update tests for string and large_string #35504
GH-35490: [Python] Interchange protocol: update tests for string and large_string #35504
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still want to test normal string for older pandas? (because now the test combines both, and so doesn't test it for older versions?)
Oh yes, of course! Will correct 👍 |
@github-actions crossbow submit test-conda-python--pandas- |
Revision: 0179e1c Submitted crossbow builds: ursacomputing/crossbow @ actions-d113313268
|
0179e1c
to
5f05027
Compare
@github-actions crossbow submit test-conda-python--pandas- |
Revision: 5f05027 Submitted crossbow builds: ursacomputing/crossbow @ actions-6f1dfae313
|
Nightly failure is unrelated (but something else we should fix) |
I think this failure is connected to #34789? |
Yes, indeed, I am looking at that |
The diff is a bit confusing so I will add some notes here: - `test_categorical_roundtrip` is not removed but renamed to `test_pandas_roundtrip_categorical` so that all tests checking `pyarrow` -> `pandas` -> `pyarrow` start with `test_pandas_roundtip_*` - the skip for the `test_pandas_roundtrip_categorical` is removed - `test_pandas_to_pyarrow_categorical_with_missing` is removed as the conversion for categorical with missing values is now checked in `test_pandas_roundtrip_categorical` - `test_roundtrip_pandas_boolean` is removed and the check for boolean has been added to `test_pandas_roundtrip` - `test_pandas_assertion_error_large_string` and `test_pandas_to_pyarrow_string_with_missing` are removed as the update for these is done separately in #35504 * Closes: #35264 Authored-by: Alenka Frim <frim.alenka@gmail.com> Signed-off-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
Benchmark runs are scheduled for baseline = 11780b9 and contender = dec4453. dec4453 is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
['Python', 'R'] benchmarks have high level of regressions. |
…g and large_string (apache#35504) ### Rationale for this change In pandas version 2.0.1 the interchange protocol implementation has support for large strings. The tests on our side need to be updated accordingly. ### What changes are included in this PR? Changes in tests: - `test_pandas_assertion_error_large_string` removed - `test_roundtrip_pandas_string ` updated * Closes: apache#35490 Authored-by: Alenka Frim <frim.alenka@gmail.com> Signed-off-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
…35530) The diff is a bit confusing so I will add some notes here: - `test_categorical_roundtrip` is not removed but renamed to `test_pandas_roundtrip_categorical` so that all tests checking `pyarrow` -> `pandas` -> `pyarrow` start with `test_pandas_roundtip_*` - the skip for the `test_pandas_roundtrip_categorical` is removed - `test_pandas_to_pyarrow_categorical_with_missing` is removed as the conversion for categorical with missing values is now checked in `test_pandas_roundtrip_categorical` - `test_roundtrip_pandas_boolean` is removed and the check for boolean has been added to `test_pandas_roundtrip` - `test_pandas_assertion_error_large_string` and `test_pandas_to_pyarrow_string_with_missing` are removed as the update for these is done separately in apache#35504 * Closes: apache#35264 Authored-by: Alenka Frim <frim.alenka@gmail.com> Signed-off-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
…g and large_string (apache#35504) ### Rationale for this change In pandas version 2.0.1 the interchange protocol implementation has support for large strings. The tests on our side need to be updated accordingly. ### What changes are included in this PR? Changes in tests: - `test_pandas_assertion_error_large_string` removed - `test_roundtrip_pandas_string ` updated * Closes: apache#35490 Authored-by: Alenka Frim <frim.alenka@gmail.com> Signed-off-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
…35530) The diff is a bit confusing so I will add some notes here: - `test_categorical_roundtrip` is not removed but renamed to `test_pandas_roundtrip_categorical` so that all tests checking `pyarrow` -> `pandas` -> `pyarrow` start with `test_pandas_roundtip_*` - the skip for the `test_pandas_roundtrip_categorical` is removed - `test_pandas_to_pyarrow_categorical_with_missing` is removed as the conversion for categorical with missing values is now checked in `test_pandas_roundtrip_categorical` - `test_roundtrip_pandas_boolean` is removed and the check for boolean has been added to `test_pandas_roundtrip` - `test_pandas_assertion_error_large_string` and `test_pandas_to_pyarrow_string_with_missing` are removed as the update for these is done separately in apache#35504 * Closes: apache#35264 Authored-by: Alenka Frim <frim.alenka@gmail.com> Signed-off-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
Rationale for this change
In pandas version 2.0.1 the interchange protocol implementation has support for large strings. The tests on our side need to be updated accordingly.
What changes are included in this PR?
Changes in tests:
test_pandas_assertion_error_large_string
removedtest_roundtrip_pandas_string
updated