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

Method _validate_format

pandas/io/pytables.py:1813–1821  ·  view source on GitHub ↗

validate / deprecate formats

(self, format: str)

Source from the content-addressed store, hash-verified

1811 raise ClosedFileError(f"{self._path} file is not open!")
1812
1813 def _validate_format(self, format: str) -> str:
1814 """validate / deprecate formats"""
1815 # validate
1816 try:
1817 format = _FORMAT_MAP[format.lower()]
1818 except KeyError as err:
1819 raise TypeError(f"invalid HDFStore format specified [{format}]") from err
1820
1821 return format
1822
1823 def _create_storer(
1824 self,

Callers 2

putMethod · 0.95
appendMethod · 0.95

Calls 1

lowerMethod · 0.80

Tested by

no test coverage detected