8000 Deprecate series.nonzero (GH18262) by makbigc · Pull Request #24048 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

Deprecate series.nonzero (GH18262) #24048

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from
Jan 5, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add test
  • Loading branch information
makbigc committed Jan 5, 2019
commit 54ea943b8b8a8a906f271ecfb17d4d34f7e7b727
6 changes: 6 additions & 0 deletions pandas/tests/series/test_missing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1324,3 +1324,9 @@ def test_series_interpolate_intraday(self):
result = ts.reindex(new_index).interpolate(method='time')

tm.assert_numpy_array_equal(result.values, exp.values)

def test_nonzero_warning(self):
# GH 24048
ser = pd.Series([1, 0, 3, 4])
with pytest.warns(FutureWarning, match="Series.nonzero()"):
ser.nonzero()
0