data_profiling.profile_data module
- data_profiling.profile_data.convert_str_to_datetime(value: str) datetime
Convert CSV strings to a useful data type.
- Parameters:
values – the value from the CSV column
- Returns:
the data converted to float
- data_profiling.profile_data.convert_str_to_float(value: str) float
Convert CSV strings to a useful data type.
- Parameters:
value – the value from the CSV column
- Returns:
the data converted to float
- data_profiling.profile_data.get_pattern(l: list) dict
- Return a Counter where the keys are the observed patterns and the values are how often they appear.Examples:“hi joe.” –> “CC_C(3)”“hello4abigail” –> “C(5)9C(7)”“this+unexpected- 9” –> “C(4)?C(10)?_(3)9”
- Parameters:
l – a list of strings
- Returns:
a pattern analysis
- data_profiling.profile_data.truncate_string(s: str, max_length: int, filler: str = '...') str
For example, truncate_string(“Hello world!”, 7) returns: “Hell…”