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

Function _maybe_convert

pandas/io/pytables.py:5373–5378  ·  view source on GitHub ↗
(values: np.ndarray, val_kind: str, encoding: str, errors: str)

Source from the content-addressed store, hash-verified

5371
5372
5373def _maybe_convert(values: np.ndarray, val_kind: str, encoding: str, errors: str):
5374 assert isinstance(val_kind, str), type(val_kind)
5375 if _need_convert(val_kind):
5376 conv = _get_converter(val_kind, encoding, errors)
5377 values = conv(values)
5378 return values
5379
5380
5381def _get_converter(kind: str, encoding: str, errors: str):

Callers 2

_binopMethod · 0.85
convertMethod · 0.85

Calls 2

_need_convertFunction · 0.85
_get_converterFunction · 0.85

Tested by

no test coverage detected