Add row level comparisons to `Compare`
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- python
- Domain
- data, testing-qa
Research direction
Start by locating the existing Compare implementation and reviewing how the project uses Narwhals across supported backends. Clarify the intended behavior for unequal, equal, and unique rows, then compare the exception, hashing, and join-key approaches described in the issue. Done means an agreed general strategy and corresponding row-level comparison behavior.
Written by the indexing model from the issue text.
Description
- n unequal
- n equal
- n unique (probably helpful for diagnosing weird equality things)
This part will be difficult, there are 3 ways I think it can happen. First, is using some sort of exception logic like from a except b - blunt and useful. Second, using some row hashing functionality and then excepting the second from the first. Third would be using a join key(s), which I feel data will commonly have, and using one of the first 2 strategies from there, probably the hashing.
I've experimented on my own side in a professional setting with all of the 3. I find the exception method very easy but I strictly use duckdb for that. When I'm getting fancy or have some non-trivial join key logic I use the hashing but much to my dismay as it's usually categorically worse.
What I've had horrible experiences with is sorting join keys. I'm looking for a solution that can sort out of memory on quite large datasets, and I can't find a good solution that pre-sorts.
There are downsides to all these approaches and I think Narwhals will need some contributions in order to get this to work in a general sense. Polars has has hashing logic and duckdb has exception logic, can't speak for everything else.
Much to consider...
- Dominant language
- Python
- Stars
- 506
- Forks
- 42
- Avg merge
- 5h 46m
- Merged PRs (30d)
- 89
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from posit-dev/pointblank
-
`DataScan` and `col_summary_tbl()` don't treat NaN as missing on Polars, PyArrow and Ibis tablesOpen
Difficulty 3/5 1-2 days Newbie friendliness 72/100
posit-dev/pointblank#613 ·
Maintainers usually reply within 1 day
-
Type: ⁇ Question
Difficulty 5/5 Over a week Newbie friendliness 15/100
posit-dev/pointblank#567 · 3 comments ·
Maintainers usually reply within 1 day
-
An equivalent of "multi-agent reports"May be free again @rich-iannone claimed this 456 days ago, and no pull request is open. OpenDifficulty: [3] Advanced Effort: [3] High Priority: [2] Medium Type: ★ Enhancement
posit-dev/pointblank#254 · 1 comment · 1 reaction · 1 assignee ·
Maintainers usually reply within 1 day
-
Type: ★ Enhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
posit-dev/pointblank#169 · 1 reaction ·
Maintainers usually reply within 1 day
-
Type: ★ Enhancement
Difficulty 5/5 Over a week Newbie friendliness 30/100
posit-dev/pointblank#92 ·
Maintainers usually reply within 1 day
All issues in posit-dev/pointblank
Similar issues
-
accepted
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
future-agi/future-agi#6392 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
memmapped_arange ignores the start value and drops the last point above the memmap thresholdPossibly taken @prathameshfuke claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
StingraySoftware/HENDRICS#213 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
Bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 2 days