8000 ENH: Add Series.str.casefold by charlesdong1991 · Pull Request #25419 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

ENH: Add Series.str.casefold #25419

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 17 commits into from
Feb 28, 2019
Merged
Show file tree
Hide file tree
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 series.str.casefold in reference
  • Loading branch information
charlesdong1991 committed Feb 23, 2019
commit 13b2442736880d61e7410182086f026361ef5a70
1 change: 1 addition & 0 deletions doc/source/reference/series.rst
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ strings and apply several methods to it. These can be accessed like
:template: autosummary/accessor_method.rst

Series.str.capitalize
Series.str.casefold
Series.str.cat
Series.str.center
Series.str.contains
Expand Down
4 changes: 2 additions & 2 deletions pandas/tests/test_strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -3426,8 +3426,8 @@ def test_method_on_bytes(self):
tm.assert_series_equal(result, expected)

def test_casefold(self):
casefolded = Series(['ss', NA, 'case', 'ssd'])
s = Series(['ß', NA, 'case', 'ßd'])
casefolded = Series(['ss', 'case', 'ssd'])
s = Series(['ß', 'case', 'ßd'])
result = s.str.casefold()

tm.assert_series_equal(result, casefolded)
0