Skip to content

Commit a90f5e8

Browse files
committed
pandas 2.0 removals in core/indexes
1 parent 2602494 commit a90f5e8

File tree

7 files changed

+0
-20
lines changed

7 files changed

+0
-20
lines changed

pandas-stubs/core/indexes/base.pyi

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ from pandas._typing import (
5555
np_ndarray_bool,
5656
np_ndarray_complex,
5757
np_ndarray_float,
58-
np_ndarray_int64,
5958
type_t,
6059
)
6160

@@ -262,8 +261,6 @@ class Index(IndexOpsMixin[S1]):
262261
) -> Self: ...
263262
@property
264263
def str(self) -> StringMethods[Self, MultiIndex]: ...
265-
@property
266-
def asi8(self) -> np_ndarray_int64: ...
267264
def is_(self, other) -> bool: ...
268265
def __len__(self) -> int: ...
269266
def __array__(self, dtype=...) -> np.ndarray: ...
@@ -283,7 +280,6 @@ class Index(IndexOpsMixin[S1]):
283280
def format(
284281
self, name: bool = ..., formatter: Callable | None = ..., na_rep: _str = ...
285282
) -> list[_str]: ...
286-
def to_native_types(self, slicer=..., **kwargs): ...
287283
def to_flat_index(self): ...
288284
def to_series(self, index=..., name=...) -> Series: ...
289285
def to_frame(self, index: bool = ..., name=...) -> DataFrame: ...
@@ -317,7 +313,6 @@ class Index(IndexOpsMixin[S1]):
317313
def is_object(self) -> bool: ...
318314
def is_categorical(self) -> bool: ...
319315
def is_interval(self) -> bool: ...
320-
def is_mixed(self) -> bool: ...
321316
def holds_integer(self): ...
322317
@property
323318
def inferred_type(self) -> _str: ...
@@ -373,7 +368,6 @@ class Index(IndexOpsMixin[S1]):
373368
def array(self) -> ExtensionArray: ...
374369
def memory_usage(self, deep: bool = ...): ...
375370
def where(self, cond, other=...): ...
376-
def is_type_compatible(self, kind) -> bool: ...
377371
def __contains__(self, key) -> bool: ...
378372
def __setitem__(self, key, value) -> None: ...
379373
@overload
@@ -401,8 +395,6 @@ class Index(IndexOpsMixin[S1]):
401395
def sort(self, *args, **kwargs) -> None: ...
402396
def shift(self, periods: int = ..., freq=...) -> None: ...
403397
def argsort(self, *args, **kwargs): ...
404-
def get_value(self, series, key): ...
405-
def set_value(self, arr, key, value) -> None: ...
406398
def get_indexer_non_unique(self, target): ...
407399
def get_indexer_for(self, target, **kwargs): ...
408400
@final

pandas-stubs/core/indexes/category.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,5 @@ class CategoricalIndex(ExtensionIndex[S1], accessor.PandasDelegate):
4545
def reindex(self, target, method=..., level=..., limit=..., tolerance=...): ...
4646
def get_indexer(self, target, method=..., limit=..., tolerance=...): ...
4747
def get_indexer_non_unique(self, target): ...
48-
def take_nd(self, *args, **kwargs): ...
4948
def delete(self, loc): ...
5049
def insert(self, loc, item): ...

pandas-stubs/core/indexes/datetimes.pyi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ class DatetimeIndex(DatetimeTimedeltaMixin[Timestamp], DatetimeIndexProperties):
7171
) -> TimedeltaIndex: ...
7272
def to_series(self, index=..., name=...) -> TimestampSeries: ...
7373
def snap(self, freq: str = ...): ...
74-
def get_value(self, series, key): ...
7574
def slice_indexer(self, start=..., end=..., step=...): ...
7675
def searchsorted(self, value, side: str = ..., sorter=...): ...
7776
@property
@@ -81,7 +80,6 @@ class DatetimeIndex(DatetimeTimedeltaMixin[Timestamp], DatetimeIndexProperties):
8180
def indexer_between_time(
8281
self, start_time, end_time, include_start: bool = ..., include_end: bool = ...
8382
): ...
84-
def to_perioddelta(self, freq) -> TimedeltaIndex: ...
8583
def to_julian_date(self) -> Index[float]: ...
8684
def isocalendar(self) -> DataFrame: ...
8785
@property

pandas-stubs/core/indexes/interval.pyi

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ from pandas._typing import (
3737
)
3838

3939
from pandas.core.dtypes.dtypes import IntervalDtype as IntervalDtype
40-
from pandas.core.dtypes.generic import ABCSeries
4140

4241
_EdgesInt: TypeAlias = (
4342
Sequence[int]
@@ -247,7 +246,6 @@ class IntervalIndex(ExtensionIndex[IntervalT], IntervalMixin):
247246
def mid(self) -> Index: ...
248247
@property
249248
def length(self) -> Index: ...
250-
def get_value(self, series: ABCSeries, key): ...
251249
@overload # type: ignore[override]
252250
def __getitem__(
253251
self,
@@ -264,8 +262,6 @@ class IntervalIndex(ExtensionIndex[IntervalT], IntervalMixin):
264262
def __getitem__( # pyright: ignore[reportIncompatibleMethodOverride]
265263
self, idx: int
266264
) -> IntervalT: ...
267-
@property
268-
def is_all_dates(self) -> bool: ...
269265
@overload # type: ignore[override]
270266
def __gt__(
271267
self, other: IntervalT | IntervalIndex[IntervalT]

pandas-stubs/core/indexes/multi.pyi

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ class MultiIndex(Index[Any]):
9696
def duplicated(self, keep: Literal["first", "last", False] = ...): ...
9797
def fillna(self, value=..., downcast=...) -> None: ...
9898
def dropna(self, how: Literal["any", "all"] = ...) -> Self: ...
99-
def get_value(self, series, key): ...
10099
def get_level_values(self, level: str | int) -> Index: ...
101100
def unique(self, level=...): ...
102101
def to_frame(
@@ -106,8 +105,6 @@ class MultiIndex(Index[Any]):
106105
allow_duplicates: bool = ...,
107106
) -> pd.DataFrame: ...
108107
def to_flat_index(self): ...
109-
@property
110-
def is_all_dates(self) -> bool: ...
111108
def remove_unused_levels(self): ...
112109
@property
113110
def nlevels(self) -> int: ...

pandas-stubs/core/indexes/period.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ class PeriodIndex(DatetimeIndexOpsMixin[pd.Period], PeriodIndexFieldOps):
5959
def is_full(self) -> bool: ...
6060
@property
6161
def inferred_type(self) -> str: ...
62-
def get_value(self, series, key): ...
6362
def get_indexer(self, target, method=..., limit=..., tolerance=...): ...
6463
def get_indexer_non_unique(self, target): ...
6564
def insert(self, loc, item): ...

pandas-stubs/core/indexes/timedeltas.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ class TimedeltaIndex(DatetimeTimedeltaMixin[Timedelta], TimedeltaIndexProperties
7272
) -> Index[int]: ...
7373
def __rfloordiv__(self, other: dt.timedelta | Sequence[dt.timedelta]) -> Index[int]: ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]
7474
def astype(self, dtype, copy: bool = ...): ...
75-
def get_value(self, series, key): ...
7675
def searchsorted(self, value, side: str = ..., sorter=...): ...
7776
@property
7877
def inferred_type(self) -> str: ...

0 commit comments

Comments
 (0)