1
+ from pandas .core .computation .ops import UndefinedVariableError as UndefinedVariableError
2
+
1
3
from pandas ._config .config import OptionError as OptionError
2
4
3
5
from pandas ._libs .tslibs import (
4
6
OutOfBoundsDatetime as OutOfBoundsDatetime ,
5
7
OutOfBoundsTimedelta as OutOfBoundsTimedelta ,
6
8
)
7
9
8
- from pandas .io .clipboard import PyperclipWindowsException as PyperclipWindowsException
9
-
10
- # TODO: Uncomment import below after switch to 1.5.x.
11
- # from pandas.core.computation.ops import UndefinedVariableError as UndefinedVariableError
12
-
13
10
class IntCastingNaNError (ValueError ): ...
14
11
class NullFrequencyError (ValueError ): ...
15
12
class PerformanceWarning (Warning ): ...
@@ -28,30 +25,24 @@ class AbstractMethodError(NotImplementedError):
28
25
class NumbaUtilError (Exception ): ...
29
26
class DuplicateLabelError (ValueError ): ...
30
27
class InvalidIndexError (Exception ): ...
28
+ class DataError (Exception ): ...
29
+ class SpecificationError (Exception ): ...
30
+ class SettingWithCopyError (ValueError ): ...
31
+ class SettingWithCopyWarning (Warning ): ...
32
+ class NumExprClobberingError (NameError ): ...
33
+ class IndexingError (Exception ): ...
34
+ class PyperclipException (RuntimeError ): ...
35
+
36
+ class PyperclipWindowsException (PyperclipException ):
37
+ def __init__ (self , message ) -> None : ...
31
38
32
- # TODO: Uncomment and delete from pandas.core.base after switch to 1.5.x
33
- # class DataError(Exception): ...
34
- # class SpecificationError(Exception): ...
35
- # TODO: Uncomment and delete from pandas.core.common after switch to 1.5.x
36
- # class SettingWithCopyError(ValueError): ...
37
- # class SettingWithCopyWarning(Warning): ...
38
- # TODO: Uncomment and delete from pandas.core.computation.engines after switch to 1.5.x
39
- # class NumExprClobberingError(NameError): ...
40
- # TODO: Uncomment and delete from core.indexing after switch to 1.5.x
41
- # class IndexingError(Exception): ...
42
- # TODO: Uncomment and delete from io.clipboards.__init__ after switch to 1.5.x
43
- # class PyperclipException(RuntimeError): ...
44
- # TODO: Uncomment and delete from io.formats.css after switch to 1.5.x
45
- # class CSSWarning(UserWarning): ...
46
- # TODO: Uncomment and delete next 4 from io.pytables after switch to 1.5.x
47
- # class PossibleDataLossError(Exception): ...
48
- # class ClosedFileError(Exception): ...
49
- # class IncompatibilityWarning(Warning): ...
50
- # class AttributeConflictWarning(Warning): ...
51
- # TODO: Uncomment and delete from io.sql after switch to 1.5.x
52
- # class DatabaseError(OSError): ...
53
- # TODO: Uncomment and delete from io.stata after switch to 1.5.x
54
- # class PossiblePrecisionLoss(Warning): ...
55
- # class ValueLabelTypeMismatch(Warning): ...
56
- # class InvalidColumnName(Warning): ...
57
- # class CategoricalConversionWarning(Warning): ...
39
+ class CSSWarning (UserWarning ): ...
40
+ class PossibleDataLossError (Exception ): ...
41
+ class ClosedFileError (Exception ): ...
42
+ class IncompatibilityWarning (Warning ): ...
43
+ class AttributeConflictWarning (Warning ): ...
44
+ class DatabaseError (OSError ): ...
45
+ class PossiblePrecisionLoss (Warning ): ...
46
+ class ValueLabelTypeMismatch (Warning ): ...
47
+ class InvalidColumnName (Warning ): ...
48
+ class CategoricalConversionWarning (Warning ): ...
0 commit comments