Safe-DS / Library

A user-friendly library for Data Science in Python.
https://library.safeds.com
MIT License
18 stars 4 forks source link

feat: get first cell with value other than `None` #904

Closed wastedareas closed 4 months ago

wastedareas commented 4 months ago

Closes #799

Summary of Changes

Added static method to Cell, which returns a Cell containing the polars expression of the first Cell in the list that is not None. Works on a list of Cells, regardless of Cell type (numeric, string, date, etc.). Returns None if given an empty list.

github-actions[bot] commented 4 months ago

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ PYTHON black 2 0 0 1.05s
✅ PYTHON mypy 2 0 2.96s
✅ PYTHON ruff 2 0 0 0.36s
✅ REPOSITORY git_diff yes no 0.6s

See detailed report in MegaLinter reports _Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff_

_MegaLinter is graciously provided by OX Security_

codecov[bot] commented 4 months ago

Codecov Report

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

Project coverage is 98.13%. Comparing base (9880fe0) to head (ebbdc54). Report is 55 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #904 +/- ## ========================================== + Coverage 97.63% 98.13% +0.49% ========================================== Files 117 122 +5 Lines 6057 6900 +843 ========================================== + Hits 5914 6771 +857 + Misses 143 129 -14 ```

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

wastedareas commented 4 months ago

Do I need to resolve the conversations or will they be resolved by the reviewers? Because all the requested changes should be implemented in the latest commit.

lars-reimann commented 4 months ago

Yes, please resolve conversations you've handled yourself.

lars-reimann commented 4 months ago

:tada: This PR is included in version 0.27.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: