aeye-lab / pymovements

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

chore: migrate deprecated polars funtions #612

Closed josephine-funken closed 8 months ago

josephine-funken commented 8 months ago

Description

The use of deprecated pandas functions groupby, lengths and map were refactored. The respective DeprecationWarnings no longer occur.

Fixes issue #611

Implemented changes

Type of change

How Has This Been Tested?

Changes have not been tested because they do not change the functionality.

Checklist:

codecov[bot] commented 8 months ago

Codecov Report

All modified lines are covered by tests :white_check_mark:

Comparison is base (b6538a3) 100.00% compared to head (5a5d2e6) 100.00%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #612 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 52 52 Lines 2348 2348 Branches 587 587 ========================================= Hits 2348 2348 ``` | [Files](https://app.codecov.io/gh/aeye-lab/pymovements/pull/612?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aeye-lab) | Coverage Δ | | |---|---|---| | [src/pymovements/events/processing.py](https://app.codecov.io/gh/aeye-lab/pymovements/pull/612?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aeye-lab#diff-c3JjL3B5bW92ZW1lbnRzL2V2ZW50cy9wcm9jZXNzaW5nLnB5) | `100.00% <ø> (ø)` | | | [src/pymovements/gaze/gaze\_dataframe.py](https://app.codecov.io/gh/aeye-lab/pymovements/pull/612?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aeye-lab#diff-c3JjL3B5bW92ZW1lbnRzL2dhemUvZ2F6ZV9kYXRhZnJhbWUucHk=) | `100.00% <ø> (ø)` | | | [src/pymovements/gaze/transforms.py](https://app.codecov.io/gh/aeye-lab/pymovements/pull/612?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aeye-lab#diff-c3JjL3B5bW92ZW1lbnRzL2dhemUvdHJhbnNmb3Jtcy5weQ==) | `100.00% <ø> (ø)` | |

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