Add row level comparisons to `Compare`

Aperta
#91 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
python
Ambito
data, testing-qa

Direzione di ricerca

Inizia individuando l’implementazione esistente di Compare e verificando come il progetto utilizza Narwhals nei backend supportati. Chiarisci il comportamento previsto per le righe diverse, uguali e uniche, quindi confronta gli approcci basati su eccezioni, hashing e chiavi di join descritti nell’issue. Il lavoro è completato quando sono state concordate una strategia generale e il corrispondente comportamento del confronto a livello di riga.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Type: ★ Enhancement
  • 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...

Lingua principale
Python
Stelle
506
Fork
42
Merge medio
5h 46m
PR unite (30g)
89

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di posit-dev/pointblank

Tutte le issue di posit-dev/pointblank

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.