Skip to content

CLN/DEPR: removed deprecated as_indexer arg from str.match() #22356

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

Closed
wants to merge 9 commits into from
Prev Previous commit
Next Next commit
remove tests for the same points
  • Loading branch information
HyunTruth committed Aug 15, 2018
commit 72f74b2da4b1b6a48967616775212a9ee6d1d228
10 changes: 0 additions & 10 deletions pandas/tests/test_strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -946,16 +946,6 @@ def test_match(self):
"unexpected keyword "
"argument 'as_indexer'"):
result = values.str.match('.*BAD[_]+.*BAD', as_indexer=True)
with tm.assert_raises_regex(TypeError,
"str_match() got an "
"unexpected keyword "
"argument 'as_indexer'"):
result = values.str.match('.*BAD[_]+.*BAD', as_indexer=False)
with tm.assert_raises_regex(TypeError,
"str_match() got an "
"unexpected keyword "
"argument 'as_indexer'"):
result = values.str.match('.*(BAD[_]+).*(BAD)', as_indexer=True)

# mixed
mixed = Series(['aBAD_BAD', NA, 'BAD_b_BAD', True, datetime.today(),
Expand Down