Skip to content

Commit fc8a75e

Browse files
committed
Make NumericIndex public
1 parent b34da22 commit fc8a75e

File tree

9 files changed

+9
-7
lines changed

9 files changed

+9
-7
lines changed

pandas/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
UInt64Index,
7676
RangeIndex,
7777
Float64Index,
78+
NumericIndex,
7879
MultiIndex,
7980
IntervalIndex,
8081
TimedeltaIndex,

pandas/_testing/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
Int64Index,
5151
IntervalIndex,
5252
MultiIndex,
53+
NumericIndex,
5354
RangeIndex,
5455
Series,
5556
UInt64Index,
@@ -105,7 +106,6 @@
105106
use_numexpr,
106107
with_csv_dialect,
107108
)
108-
from pandas.core.api import NumericIndex
109109
from pandas.core.arrays import (
110110
DatetimeArray,
111111
PandasArray,

pandas/core/indexes/category.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def _is_dtype_compat(self, other) -> Categorical:
283283

284284
@doc(Index.astype)
285285
def astype(self, dtype: Dtype, copy: bool = True) -> Index:
286-
from pandas.core.api import NumericIndex
286+
from pandas import NumericIndex
287287

288288
dtype = pandas_dtype(dtype)
289289

pandas/tests/api/test_api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ class TestPDApi(Base):
6868
"Index",
6969
"Int64Index",
7070
"MultiIndex",
71+
"NumericIndex",
7172
"Period",
7273
"PeriodIndex",
7374
"RangeIndex",

pandas/tests/base/test_unique.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
)
1010

1111
import pandas as pd
12+
from pandas import NumericIndex
1213
import pandas._testing as tm
13-
from pandas.core.api import NumericIndex
1414
from pandas.tests.base.common import allow_na_ops
1515

1616

pandas/tests/indexes/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
Int64Index,
2727
IntervalIndex,
2828
MultiIndex,
29+
NumericIndex,
2930
PeriodIndex,
3031
RangeIndex,
3132
Series,
@@ -34,7 +35,6 @@
3435
)
3536
from pandas import UInt64Index # noqa:F401
3637
import pandas._testing as tm
37-
from pandas.core.api import NumericIndex
3838
from pandas.core.indexes.datetimelike import DatetimeIndexOpsMixin
3939

4040

pandas/tests/indexes/numeric/test_numeric.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
Float64Index,
99
Index,
1010
Int64Index,
11+
NumericIndex,
1112
Series,
1213
UInt64Index,
1314
)
1415
import pandas._testing as tm
15-
from pandas.core.api import NumericIndex
1616
from pandas.tests.indexes.common import NumericBase
1717

1818

pandas/tests/indexes/test_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
CategoricalIndex,
2222
DatetimeIndex,
2323
MultiIndex,
24+
NumericIndex,
2425
PeriodIndex,
2526
RangeIndex,
2627
TimedeltaIndex,
2728
)
2829
import pandas._testing as tm
29-
from pandas.core.api import NumericIndex
3030

3131

3232
class TestCommon:

pandas/tests/indexes/test_numpy_compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
DatetimeIndex,
66
Float64Index,
77
Index,
8+
NumericIndex,
89
PeriodIndex,
910
TimedeltaIndex,
1011
)
1112
import pandas._testing as tm
12-
from pandas.core.api import NumericIndex
1313
from pandas.core.indexes.datetimelike import DatetimeIndexOpsMixin
1414

1515

0 commit comments

Comments
 (0)