8000 TST: add method/dtype coverage to str-accessor; precursor to #23167 by h-vetinari · Pull Request #23582 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

TST: add method/dtype coverage to str-accessor; precursor to #23167 #23582

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 12 commits into from
Nov 28, 2018
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
Alphabetize methods without positional kwargs in fixture-parametrization
  • Loading branch information
h-vetinari committed Nov 15, 2018
commit a94f569628fd58dffd08be8c5d8519e4981dc5ee
17 changes: 8 additions & 9 deletions pandas/tests/test_strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,14 @@ def assert_series_or_index_equal(left, right):
('zfill', (10,), {}) # noqa: E241
] + list(zip([
# methods without positional arguments: zip with empty tuple and empty dict
'cat', 'len', 'split', 'rsplit',
'partition', 'rpartition', 'get_dummies',
'slice', 'slice_replace',
'strip', 'lstrip', 'rstrip',
'lower', 'upper', 'capitalize',
'title', 'swapcase',
'isalpha', 'isnumeric', 'isalnum',
'isdigit', 'isdecimal', 'isspace',
'islower', 'isupper', 'istitle'
'capitalize', 'cat', 'get_dummies',
'isalnum', 'isalpha', 'isdecimal',
'isdigit', 'islower', 'isnumeric',
'isspace', 'istitle', 'isupper',
'len', 'lower', 'lstrip', 'partition',
'rpartition', 'rsplit', 'rstrip',
'slice', 'slice_replace', 'split',
'strip', 'swapcase', 'title', 'upper'
], [()] * 100, [{}] * 100))
ids, _, _ = zip(*_any_string_method) # use method name as fixture-id

Expand Down
0