snowmobile.core.column¶
Represents a single Column of a SnowFrame, primarily for the purpose of carrying out/tracking operations performed on a given field in order to standardize or re-format it prior to loading into a table.
Module Contents¶
Classes¶
A single column within a |
- class
snowmobile.core.column.Column(original: str, current: Optional[str] = None, prior: Optional[str] = None, src: Optional[str] = None)¶ Bases:
snowmobile.core.GenericA single column within a
SnowFrame.-
update(self)¶ Migrate from prior to current context within this context.
- static
dedupe(current: str, char: Optional[str] = None) → str¶ Dedupes consecutive characters within a string.
Note
Must iterate through matches and perform replacements in the order of the largest to the smallest by number of characters; this is to avoid altering the matches found before replacing them.
-