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

Class PossibleDataLossError

pandas/errors/__init__.py:840–857  ·  view source on GitHub ↗

Exception raised when trying to open an HDFStore file when already opened. This error is triggered when there is a potential risk of data loss due to conflicting operations on an HDFStore file. It serves to prevent unintended overwrites or data corruption by enforcing exclusive acc

Source from the content-addressed store, hash-verified

838
839
840class PossibleDataLossError(Exception):
841 """
842 Exception raised when trying to open an HDFStore file when already opened.
843
844 This error is triggered when there is a potential risk of data loss due to
845 conflicting operations on an HDFStore file. It serves to prevent unintended
846 overwrites or data corruption by enforcing exclusive access to the file.
847
848 See Also
849 --------
850 HDFStore : Dict-like IO interface for storing pandas objects in PyTables.
851 HDFStore.open : Open an HDFStore file in the specified mode.
852
853 Examples
854 --------
855 >>> store = pd.HDFStore("my-store", "a") # doctest: +SKIP
856 >>> store.open("w") # doctest: +SKIP
857 """
858
859
860class ClosedFileError(Exception):

Callers 1

openMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected