formatting module¶
Utilities for formatting.
camel_to_snake_case function¶
Convert a camel case string to a snake case string.
format_array function¶
Format an array.
Arguments are passed to pd.DataFrame.to_string or pd.DataFrame.to_html if tabulate is False, otherwise to tabulate.tabulate. If tabulate is None, will be set to True if the tabulate library is installed and html is disabled.
format_func function¶
Format a function.
format_parameter function¶
Format a parameter of a signature.
format_signature function¶
Format a signature.
pdir function¶
Print the output of parse_attrs().
phelp function¶
Print the output of format_func().
pprint function¶
Print the output of prettify().
prettify function¶
Prettify an object.
Unfolds regular Python data structures such as lists and tuples.
If obj is an instance of Prettified, calls Prettified.prettify().
prettify_dict function¶
Prettify a dictionary.
prettify_inited function¶
Prettify an instance initialized with keyword arguments.
ptable function¶
Print the output of format_array().
If display_html is None, checks whether the code runs in a IPython notebook, and if so, becomes True. If display_html is True, displays the table in HTML format.
Prettified class¶
Abstract class that can be prettified.
Subclasses
prettify method¶
Prettify this object.
Warning
Calling prettify() can lead to an infinite recursion. Make sure to pre-process this object.