def deregister():
<EOL>for type_, cls in get_pairs():<EOL><INDENT>if type(units.registry.get(type_)) is cls:<EOL><INDENT>units.registry.pop(type_)<EOL><DEDENT><DEDENT>for unit, formatter in _mpl_units.items():<EOL><INDENT>if type(formatter) not in {DatetimeConverter, PeriodConverter,<EOL>TimeConverter}:<EOL><INDENT>units.registry[unit] = formatter<EOL><DEDENT><DEDENT>
Remove pandas' formatters and converters

Removes the custom converters added by :func:`register`. This
attempts to set the state of the registry back to the state before
pandas registered its own units. Converters for pandas' own types like
Timestamp and Period are removed completely. Converters for types
pandas overwrites, like ``datetime.datetime``, are restored to their
original value.

See Also
--------
deregister_matplotlib_converters