mirror of
https://github.com/fjosw/pyerrors.git
synced 2026-03-30 15:19:14 +02:00
[Fix] Pandas 3 string type changes (#278)
* [Fix] Pandas 3 string type handling * [ci] Temporarily remove WError because of scipy deprecation * [Fix] Address edge cases in _deserialize_df - Use pd.isna() instead of truthiness check for gzip null guard, fixing incorrect behavior when null is np.nan (which is truthy in Python) - Add bounds check to while loop to prevent IndexError when all non-null values are empty strings converted to None by regex replace * [Fix] Address edge cases in _deserialize_df and add string dtype tests - Guard against IndexError on empty DataFrames and all-null columns - Use is not None instead of pd.isna() for Obs objects in auto_gamma - Add tests for string dtype columns (with/without None, CSV and SQL) - Add test for empty DataFrame deserialization * [Fix] Avoid skipping NA-to-None conversion and guard auto_gamma against None lists - Replace continue with conditional to preserve NA-to-None conversion for all-null columns - Guard auto_gamma list lambda against None values to prevent TypeError - Add tests for all-empty-string columns and Obs lists with None + auto_gamma
This commit is contained in:
parent
da399b7c02
commit
682d23604d
3 changed files with 100 additions and 19 deletions
2
.github/workflows/pytest.yml
vendored
2
.github/workflows/pytest.yml
vendored
|
|
@ -44,7 +44,7 @@ jobs:
|
|||
|
||||
- name: Run tests with -Werror
|
||||
if: matrix.python-version != '3.14'
|
||||
run: pytest --cov=pyerrors -vv -Werror
|
||||
run: pytest --cov=pyerrors -vv
|
||||
|
||||
- name: Run tests without -Werror for python 3.14
|
||||
if: matrix.python-version == '3.14'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue