MCPcopy
hub / github.com/pandas-dev/pandas / register

Function register

pandas/plotting/_matplotlib/converter.py:117–125  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

115
116
117def register() -> None:
118 pairs = get_pairs()
119 for type_, cls in pairs:
120 # Cache previous converter if present
121 if type_ in munits.registry and not isinstance(munits.registry[type_], cls):
122 previous = munits.registry[type_]
123 _mpl_units[type_] = previous
124 # Replace with pandas converter
125 munits.registry[type_] = cls()
126
127
128def deregister() -> None:

Callers 1

pandas_convertersFunction · 0.70

Calls 2

get_pairsFunction · 0.85
clsFunction · 0.85

Tested by

no test coverage detected