strings#

String functions.

Functions

string_baseform(string[, allow_empty_result])

Normalize the string input to a uniform form.

get_base_form_to_variants_dict(uniques)

Create dict of base-form of the uniques to their values.

split_camel_case(string)

Split string where there are capital letters and enter space instead.

split_and_keep(s, separators)

Split string by another substring into a list.

split_by_order(s, separators[, keep])

Split string by a list of substrings, each used once as a separator.

is_string_column(column)

Determine whether a pandas series is string type.

format_percent(ratio[, floating_point, ...])

Format percent for elegant display.

format_number(x[, floating_point])

Format number for elegant display.

format_list(l[, max_elements_to_show, ...])

Format columns properties for display in condition name.

get_random_string([n])

Return random string at the given size.

format_datetime(value)

Format datetime object or timestamp value.

get_docs_summary(obj[, with_doc_link])

Return the docs summary if available.

truncate_string(long_string, max_length)

Return the long string with ellipsis if above max_length.

to_snake_case(value)

Transform camel case indentifier into snake case.

create_new_file_name(file_name[, default_suffix])

Return file name that isn't already exist (adding (X)).

widget_to_html(widget, html_out[, title, ...])

Save widget as html file.

generate_check_docs_link(check)

Create from check object a link to its example page in the docs.

widget_to_html_string(widget[, title, ...])

Transform widget into html string.

format_number_if_not_nan(x[, floating_point])

Format number if it is not nan for elegant display.

get_docs_link()

Return the link to the docs with current version.