Add normalized CSV read mode for ragged clean inputs#12
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sintesi
Questa PR aggiunge una nuova opzione esplicita per il reader CLEAN:
clean.read.normalize_rows_to_columns: trueServe per leggere CSV con schema posizionale dichiarato quando alcune righe, file o annualita hanno meno colonne del layout canonico atteso. Il comportamento resta opt-in e non cambia il default del toolkit.
Contesto collegato
Closes #11
Cosa cambia
clean.read.normalize_rows_to_columnscome opzione supportata diclean.readclean.read.columnsclean.sqlper fonti multi-file o multi-anno quasi stabili ma non perfettamente uniformiImpatto
Segna solo quello che si applica.
Verifica
Eseguito:
Esito:
14 passedValidato anche su un caso reale di dataset pubblico multi-anno con schema posizionale quasi stabile, emerso durante il lavoro su
IRPEF comunale.Controlli
Note per chi revisiona
Punti da controllare con attenzione:
clean.read.columns