xorbitsai / xorbits

Scalable Python DS & ML, in an API compatible & lightning fast way.
https://xorbits.readthedocs.io
Apache License 2.0
1.11k stars 67 forks source link

FEAT: DataFrame Where OP Support #756

Closed fengsxy closed 3 months ago

fengsxy commented 10 months ago

What do these changes do?

make the code support for Where Operation

codecov[bot] commented 10 months ago

Codecov Report

Attention: Patch coverage is 82.85714% with 18 lines in your changes missing coverage. Please review.

Project coverage is 93.58%. Comparing base (e4a996f) to head (efc498c). Report is 12 commits behind head on main.

:exclamation: Current head efc498c differs from pull request most recent head 672f49e

Please upload reports for the commit 672f49e to get more accurate results.

Files Patch % Lines
python/xorbits/_mars/dataframe/base/where.py 82.52% 10 Missing and 8 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #756 +/- ## ========================================== + Coverage 93.55% 93.58% +0.02% ========================================== Files 1059 1060 +1 Lines 79781 79886 +105 Branches 16504 16522 +18 ========================================== + Hits 74640 74761 +121 + Misses 3461 3439 -22 - Partials 1680 1686 +6 ``` | [Flag](https://app.codecov.io/gh/xorbitsai/xorbits/pull/756/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=xorbitsai) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/xorbitsai/xorbits/pull/756/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=xorbitsai) | `93.47% <82.85%> (+0.02%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=xorbitsai#carryforward-flags-in-the-pull-request-comment) to find out more.

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

luweizheng commented 3 months ago

We have already implemented df.where and df.mask in python/xorbits/_mars/dataframe/indexing/where.py.