pydit.wrangling.various

Utility functions, they are not used directly in the core functions.

The functions below can be used directly. However, when needed for a specific core function, instead of importing them, we would create a copy of the function and rename it with an _ prefix. This is to ensure that a core function’s module is self-standing, ie can be used/imported with no other dependencies.

Functions

create_test_dataframe

Create test dataframes

dataframe_to_code

Convert a dataframe to source code that one can include in a test script or tutorial.

deduplicate_list

Deduplicates a list

print_green

print ansi codes to make the printout green

print_red

print ansi codes to make the printout red