format_dtypes

function of dascore.utils.docs source

format_dtypes(
    dtype_dict: dict[str, Any] ,
)-> ‘str’

Convert dict to string for printing.

Convert a dictionary of {name: type} to a string printable format for displaying in docstrings.

Parameters

Parameter Description
dtype_dict A dict of columns (keys) and values (dtypes).

Returns

A string formatted for compose_docstring