aeye-lab / pymovements

A python package for processing eye movement data
https://pymovements.readthedocs.io
MIT License
57 stars 11 forks source link

build: update polars requirement from <0.19.20,>=0.19.19 to >=0.20.1,<0.20.2 #644

Closed dependabot[bot] closed 6 months ago

dependabot[bot] commented 6 months ago

Updates the requirements on polars to permit the latest version.

Release notes

Sourced from polars's releases.

Python Polars 0.20.0

This version includes quite a few breaking changes. We are preparing for the 1.0 release and aim to make the upgrade from 0.20 to 1.0 as smooth as possible. Therefore, we prioritized getting any breaking changes in now rather than with 1.0.

Check out the upgrade guide for help navigating the upgrade to this version.

Please bear with us while we continue to make Polars the best tool it can be!

🏆 Highlights

  • Add new Enum categorical data type which allows a fixed set of categories (#11822)

💥 Breaking changes

  • Use Object Store instead of fsspec for read_parquet (#13044)
  • Reimplement replace expression on the Rust side (#13002)
  • Preserve left and right join keys in outer joins (#12963)
  • Update update signature (#12986)
  • Update Expr.count to ignore null values by default (#12934)
  • Scheduled removal of previously deprecated functionality (#12885)
  • Allow all DataType objects to be instantiated (#12470)
  • Change value_counts resulting column name from counts to count (#12506)
  • Change default join behavior with regard to nulls, add join_nulls parameter to keep existing behavior (#12840)
  • Default to exact checking for integers in assertion utils (#12331)
  • Set default dtype for Series to Null when no data is present (#12807)
  • Update lit behavior for list/tuple inputs (#12559)
  • Change DataType.is_nested from property to classmethod (#12453)
  • Update constructors for Array and Decimal (#12837)
  • Smaller integer data types for datetime components (#12070)
  • Fix NaN ordering to make NaNs compare greater than any other float, and equal to themselves (#12721)

⚠️ Deprecations

  • Rename write_database parameter if_exists to if_table_exists (#12783)

🚀 Performance improvements

  • Avoid dispatching to expression engine for various Series methods (#13010)
  • Elide allocation in outer join materialization (#12992)
  • Avoid dispatching Series.head/tail to the expression engine (#12946)
  • Ensure we reduce for any/all_horizontal (#12976)
  • Add fast paths for UTC in truncate (#12965)
  • Use select_seq for expression dispatch (#12962)
  • Improve rolling_median algorithm (#12704)
  • Use fast path for non-null data in new SQL-like null matching (#12874)
  • Optimize DataFrame.iter_rows for smaller buffer sizes (#12804)
  • Speed up initializing Series from a list of NumPy arrays (#12785)

✨ Enhancements

  • Add str.contains_any and str.replace_many (Aho-Corasick algorithms) (#13073)

... (truncated)

Commits
  • f96d2cd python polars 0.20.0 (#13074)
  • 1f4c54c docs(python): Update version switcher for 0.20 (#12844)
  • a511870 docs(python): Add upgrade guide for Python Polars 0.20 (#12872)
  • ecc5c4c feat: str namespace; add aho-corasick expressions: 'contains_any' and 'replac...
  • 65bf678 feat: auto infer .aws creds (#13062)
  • 3f1ef64 feat: support private s3 (#13060)
  • 9bff6d8 fix: fix off by 1 error in nearest quantile (#13058)
  • fc03c4a feat(python)!: Use Object Store instead of fsspec for read_parquet (#13044)
  • 345e741 bug(rust): fix for incorrect schema inference on nested columns (#13057)
  • 1e841a5 fix: dont raise for datetime_range if starting on ambiguous datetime and earl...
  • Additional commits viewable in compare view


Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
codecov[bot] commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (c248bb9) 100.00% compared to head (9b5c6b6) 100.00%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #644 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 54 54 Lines 2356 2356 Branches 588 588 ========================================= Hits 2356 2356 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

dkrako commented 6 months ago

That error is leaving me totally confused

dkrako commented 6 months ago

Judging from the print statement I inserted, the values are wrong before passing them to the polars dataframe:

rtol       = 1e-05
s_left     = shape: (16,)
Series: 'time' [i64]
[
    2154556
    2154557
    2154560
    2154564
    2154596
    2154598
    2154599
    2154695
    2154696
    2339227
    2339245
    2339246
    2339271
    2339272
    2339290
    2339291
]
s_right    = shape: (16,)
Series: 'time' [i64]
[
    2154556
    2154557
    2154560
    2154564
    2154597
    2154598
    2154599
    2154695
    2154696
    2339227
    2339245
    2339246
    2339271
    2339272
    2339290
    2339291
]
.tox/py39/lib/python3.9/site-packages/polars/testing/asserts/frame.py:124: AssertionError
----------------------------- Captured stdout call -----------------------------
[2154556, 2154557, 2154560, 2154564, 2154596, 2154598, 2154599, 2154695, 2154696, 2339227, 2339245, 2339246, 2339271, 2339272, 2339290, 2339291]

What is happening here?