pandas_profiling.utils.dataframe

Utils for pandas DataFrames.

Functions

expand_mixed(df[, types])

Expand non-nested lists, dicts and tuples in a DataFrame into columns with a prefix.

hash_dataframe(df)

Hash a DataFrame (wrapper around joblib.hash, might change in the future)

is_supported_compression(file_extension)

Determine if the given file extension indicates a compression format that pandas can handle automatically.

read_pandas(file_name)

Read DataFrame based on the file extension.

remove_suffix(text, suffix)

Removes the given suffix from the given string.

rename_index(df)

If the DataFrame contains a column or index named index, this will produce errors.

slugify(value[, allow_unicode])

Taken from https://github.com/django/django/blob/master/django/utils/text.py Convert to ASCII if ‘allow_unicode’ is False.

uncompressed_extension(file_name)

Returns the uncompressed extension of the given file name.

warn_read(extension)

Warn the user when an extension is not supported.