Skip to content

Commit 75ac56a

Browse files
jbrockmendeljorisvandenbossche
authored andcommitted
DEPR: remove statsmodels/seaborn compat shims (#29822)
1 parent 35029d2 commit 75ac56a

File tree

3 files changed

+0
-25
lines changed

3 files changed

+0
-25
lines changed

pandas/core/api.py

-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
)
1111
from pandas.core.dtypes.missing import isna, isnull, notna, notnull
1212

13-
# TODO: Remove get_dummies import when statsmodels updates #18264
1413
from pandas.core.algorithms import factorize, unique, value_counts
1514
from pandas.core.arrays import Categorical
1615
from pandas.core.arrays.integer import (
@@ -45,7 +44,6 @@
4544
from pandas.core.indexes.period import Period, period_range
4645
from pandas.core.indexes.timedeltas import Timedelta, timedelta_range
4746
from pandas.core.indexing import IndexSlice
48-
from pandas.core.reshape.reshape import get_dummies
4947
from pandas.core.series import Series
5048
from pandas.core.tools.datetimes import to_datetime
5149
from pandas.core.tools.numeric import to_numeric

pandas/core/series.py

-17
Original file line numberDiff line numberDiff line change
@@ -96,23 +96,6 @@
9696
)
9797

9898

99-
# see gh-16971
100-
def remove_na(arr):
101-
"""
102-
Remove null values from array like structure.
103-
104-
.. deprecated:: 0.21.0
105-
Use s[s.notnull()] instead.
106-
"""
107-
108-
warnings.warn(
109-
"remove_na is deprecated and is a private function. Do not use.",
110-
FutureWarning,
111-
stacklevel=2,
112-
)
113-
return remove_na_arraylike(arr)
114-
115-
11699
def _coerce_method(converter):
117100
"""
118101
Install the scalar coercion methods.

pandas/tests/series/test_missing.py

-6
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
date_range,
2121
isna,
2222
)
23-
from pandas.core.series import remove_na
2423
import pandas.util.testing as tm
2524

2625

@@ -48,11 +47,6 @@ def _simple_ts(start, end, freq="D"):
4847

4948

5049
class TestSeriesMissingData:
51-
def test_remove_na_deprecation(self):
52-
# see gh-16971
53-
with tm.assert_produces_warning(FutureWarning):
54-
remove_na(Series([]))
55-
5650
def test_timedelta_fillna(self):
5751
# GH 3371
5852
s = Series(

0 commit comments

Comments
 (0)