Skip to content

Commit 84cb2ec

Browse files
committed
replaced InvalidIndexError class
1 parent 317267c commit 84cb2ec

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pandas/core/base.py

+4
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
unique='IndexOpsMixin', duplicated='IndexOpsMixin')
3434

3535

36+
class InvalidIndexError(Exception):
37+
pass
38+
39+
3640
class StringMixin(object):
3741
"""implements string methods so long as object defines a `__unicode__`
3842
method.

pandas/core/indexes/base.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
from pandas.core.accessor import CachedAccessor, DirNamesMixin
3838
import pandas.core.algorithms as algos
3939
from pandas.core.arrays import ExtensionArray
40-
from pandas.core.base import IndexOpsMixin, PandasObject
40+
from pandas.core.base import IndexOpsMixin, PandasObject, InvalidIndexError
4141
import pandas.core.common as com
4242
from pandas.core.indexes.frozen import FrozenList
4343
import pandas.core.missing as missing
@@ -143,10 +143,6 @@ def index_arithmetic_method(self, other):
143143
return set_function_name(index_arithmetic_method, name, cls)
144144

145145

146-
class InvalidIndexError(Exception):
147-
pass
148-
149-
150146
_o_dtype = np.dtype(object)
151147
_Identity = object
152148

0 commit comments

Comments
 (0)