Skip to content

Commit 4f13011

Browse files
committed
DEPR: Remove ABC(Int|UInt|Float)64Index
1 parent a0071f9 commit 4f13011

File tree

2 files changed

+0
-28
lines changed

2 files changed

+0
-28
lines changed

pandas/core/dtypes/generic.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@
2929
TimedeltaArray,
3030
)
3131
from pandas.core.generic import NDFrame
32-
from pandas.core.indexes.api import (
33-
Float64Index,
34-
Int64Index,
35-
UInt64Index,
36-
)
3732

3833

3934
# define abstract base classes to enable isinstance type checking on our
@@ -62,22 +57,10 @@ def _subclasscheck(cls, inst) -> bool:
6257
return meta(name, (), dct)
6358

6459

65-
ABCInt64Index = cast(
66-
"Type[Int64Index]",
67-
create_pandas_abc_type("ABCInt64Index", "_typ", ("int64index",)),
68-
)
69-
ABCUInt64Index = cast(
70-
"Type[UInt64Index]",
71-
create_pandas_abc_type("ABCUInt64Index", "_typ", ("uint64index",)),
72-
)
7360
ABCRangeIndex = cast(
7461
"Type[RangeIndex]",
7562
create_pandas_abc_type("ABCRangeIndex", "_typ", ("rangeindex",)),
7663
)
77-
ABCFloat64Index = cast(
78-
"Type[Float64Index]",
79-
create_pandas_abc_type("ABCFloat64Index", "_typ", ("float64index",)),
80-
)
8164
ABCMultiIndex = cast(
8265
"Type[MultiIndex]",
8366
create_pandas_abc_type("ABCMultiIndex", "_typ", ("multiindex",)),
@@ -109,10 +92,7 @@ def _subclasscheck(cls, inst) -> bool:
10992
"_typ",
11093
{
11194
"index",
112-
"int64index",
11395
"rangeindex",
114-
"float64index",
115-
"uint64index",
11696
"numericindex",
11797
"multiindex",
11898
"datetimeindex",

pandas/tests/dtypes/test_generic.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@
88

99
import pandas as pd
1010
import pandas._testing as tm
11-
from pandas.core.api import (
12-
Float64Index,
13-
Int64Index,
14-
UInt64Index,
15-
)
1611

1712

1813
class TestABCClasses:
@@ -29,9 +24,6 @@ class TestABCClasses:
2924
timedelta_array = pd.core.arrays.TimedeltaArray(timedelta_index)
3025

3126
abc_pairs = [
32-
("ABCInt64Index", Int64Index([1, 2, 3])),
33-
("ABCUInt64Index", UInt64Index([1, 2, 3])),
34-
("ABCFloat64Index", Float64Index([1, 2, 3])),
3527
("ABCMultiIndex", multi_index),
3628
("ABCDatetimeIndex", datetime_index),
3729
("ABCRangeIndex", pd.RangeIndex(3)),

0 commit comments

Comments
 (0)