-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG/API: Return a Series from DataFrame.asof with no match #15232
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
Conversation
@@ -67,6 +68,22 @@ def test_subset(self): | |||
|
|||
assert_frame_equal(result, expected) | |||
|
|||
def test_missing(self): | |||
# GH 15118 |
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.
can you add a 1-liner describing this test (what its doing)
@@ -327,7 +327,7 @@ Other API Changes | |||
- ``pd.read_csv()`` will now raise a ``ValueError`` for the C engine if the quote character is larger than than one byte (:issue:`11592`) | |||
- ``inplace`` arguments now require a boolean value, else a ``ValueError`` is thrown (:issue:`14189`) | |||
- ``pandas.api.types.is_datetime64_ns_dtype`` will now report ``True`` on a tz-aware dtype, similar to ``pandas.api.types.is_datetime64_any_dtype`` | |||
|
|||
- ``DataFrame.asof`` will return a null filled ``Series`` instead the scalar ``NaN`` if a match is not found (:issue:`15118`) |
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.
DataFrame.asof()
minor comments, lgtm. ok on the API change (usually these are more 'visible' even if its a 'bug fix') |
merge on green. |
Current coverage is 86.31% (diff: 100%)@@ master #15232 diff @@
==========================================
Files 139 139
Lines 51091 51094 +3
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
+ Hits 44099 44102 +3
Misses 6992 6992
Partials 0 0
|
…v#15232) * BUG/API: Return a Series from DataFrame.asof no match * doc fixups
git diff upstream/master | flake8 --diff
Technically this is an API change, but more of a bug so didn't think there was a need to warn / deprecate?
Also there seems to be room to clean up the whole
asof
implementation, xref #10343, but wanted to keep that separate