diff --git a/pandas/core/api.py b/pandas/core/api.py index 04f2f84c92a15..7df2165201a99 100644 --- a/pandas/core/api.py +++ b/pandas/core/api.py @@ -10,7 +10,6 @@ ) from pandas.core.dtypes.missing import isna, isnull, notna, notnull -# TODO: Remove get_dummies import when statsmodels updates #18264 from pandas.core.algorithms import factorize, unique, value_counts from pandas.core.arrays import Categorical from pandas.core.arrays.integer import ( @@ -45,7 +44,6 @@ from pandas.core.indexes.period import Period, period_range from pandas.core.indexes.timedeltas import Timedelta, timedelta_range from pandas.core.indexing import IndexSlice -from pandas.core.reshape.reshape import get_dummies from pandas.core.series import Series from pandas.core.tools.datetimes import to_datetime from pandas.core.tools.numeric import to_numeric diff --git a/pandas/core/series.py b/pandas/core/series.py index 6045d6a654508..1843ffb1afaec 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -96,23 +96,6 @@ ) -# see gh-16971 -def remove_na(arr): - """ - Remove null values from array like structure. - - .. deprecated:: 0.21.0 - Use s[s.notnull()] instead. - """ - - warnings.warn( - "remove_na is deprecated and is a private function. Do not use.", - FutureWarning, - stacklevel=2, - ) - return remove_na_arraylike(arr) - - def _coerce_method(converter): """ Install the scalar coercion methods. diff --git a/pandas/tests/series/test_missing.py b/pandas/tests/series/test_missing.py index 0751e1fb8b906..81bf1edbe86df 100644 --- a/pandas/tests/series/test_missing.py +++ b/pandas/tests/series/test_missing.py @@ -20,7 +20,6 @@ date_range, isna, ) -from pandas.core.series import remove_na import pandas.util.testing as tm @@ -48,11 +47,6 @@ def _simple_ts(start, end, freq="D"): class TestSeriesMissingData: - def test_remove_na_deprecation(self): - # see gh-16971 - with tm.assert_produces_warning(FutureWarning): - remove_na(Series([])) - def test_timedelta_fillna(self): # GH 3371 s = Series(