-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
CLN: tests for str.cat #22575
CLN: tests for str.cat #22575
Conversation
@h-vetinari : Anaconda servers are experiencing some |
b16c24c
to
272da1f
Compare
Codecov Report
@@ Coverage Diff @@
## master #22575 +/- ##
=======================================
Coverage 92.04% 92.04%
=======================================
Files 169 169
Lines 50782 50782
=======================================
Hits 46742 46742
Misses 4040 4040
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls don't use abbreviations, eg. always use expected
pandas/tests/test_strings.py
Outdated
t = Index(['b', 'a', 'b', 'c'], dtype=dtype_target) | ||
|
||
exp = Index(['ab', 'aa', 'bb', 'ac']) | ||
if series_or_index == 'series': | ||
exp = Series(exp) | ||
exp = exp if box == Index else Series(exp, index=s) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use expected
@@ -469,12 +436,11 @@ def test_cat_on_filtered_index(self): | |||
|
|||
str_year = df.year.astype('str') | |||
str_month = df.month.astype('str') | |||
str_both = str_year.str.cat(str_month, sep=' ', join='left') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are you removing the join here? is it not needed? should these be parameterized by join type?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the course of #20347, the warnings were originally always issues whenever join
was not specified - and this test correspondingly adapted. However, the warnings were later reduced to only be emitted in case of different indexes between caller and others, so in this case, it's not necessary.
Hello @h-vetinari! Thanks for updating the PR.
Comment last updated on September 04, 2018 at 23:02 Hours UTC |
This module's full of |
3e8d36b
to
54721b9
Compare
not sure what's up with these Edit: saw that 22601 solved it. Rebased again. |
09ad308
to
82ba76a
Compare
82ba76a
to
2e1a3b6
Compare
@jreback All green |
thanks @h-vetinari |
Cleaning up some left-overs from #20347 and preparing the tests for changing the default of
join
to'left'
in 1.0 (which would break some tests that assume no alignment currently). As a side benefit, this has:result / expected
pattern instead of calculating result withinassert_..._equal