Skip to content

Commit c1b21cb

Browse files
committed
removed reshape from Series._deprecations
1 parent 4f3987c commit c1b21cb

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

pandas/core/arrays/categorical.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ class Categorical(ExtensionArray, PandasObject):
331331
__array_priority__ = 1000
332332
_dtype = CategoricalDtype(ordered=False)
333333
# tolist is not actually deprecated, just suppressed in the __dir__
334-
_deprecations = PandasObject._deprecations | frozenset(["get_values", "tolist"])
334+
_deprecations = PandasObject._deprecations | frozenset(["tolist", "get_values"])
335335
_typ = "categorical"
336336

337337
def __init__(

pandas/core/indexes/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ class Index(IndexOpsMixin, PandasObject):
208208
_deprecations = (
209209
IndexOpsMixin._deprecations
210210
| DirNamesMixin._deprecations
211-
| frozenset(["contains", "tolist", "dtype_str", "get_values", "set_value"])
211+
| frozenset(["tolist", "contains", "dtype_str", "get_values", "set_value"])
212212
)
213213

214214
# To hand over control to subclasses

pandas/core/series.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -181,11 +181,10 @@ class Series(base.IndexOpsMixin, generic.NDFrame):
181181
| DirNamesMixin._deprecations
182182
| frozenset(
183183
[
184+
"tolist", # tolist is not deprecated, just suppressed in the __dir__
184185
"asobject",
185186
"compress",
186-
"reshape",
187187
"valid",
188-
"tolist", # tolist is not deprecated, just suppressed in the __dir__
189188
"ftype",
190189
"real",
191190
"imag",

0 commit comments

Comments
 (0)