-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TST: concat(..., copy=False) with datetime tz-aware data raises ValueError: cannot create a DatetimeTZBlock without a tz #33458
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
…it fails on version 0.24.1 but passes on current version
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.
Thanks - looks good. Some minor feedback
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 merge master and ping on green.
pandas/tests/dtypes/test_concat.py
Outdated
# Regression test for issue 25257 | ||
df = pd.DataFrame({'timestamp': [pd.Timestamp('2020-04-08 09:00:00.709949+0000', | ||
tz='UTC')], }) | ||
result = pd.concat([df], copy=False) |
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 parameterize on copy=[True, False]
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.
Resolved
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 push up the change
…mit to test out normally with floor(1) + floor(2)
…xpression before returning res() of the value which was an abstraction of the floor function being passed in
…this commit to test out normally with floor(1) + floor(2)" This reverts commit f095a74.
This reverts commit a0c4e2b.
This reverts commit de1373e.
This reverts commit ce8fa9c.
I'm not sure why the Publish benchmarks artifact error is popping up on Travis-CI tests. Any help would be appreciated @jreback |
can you merge master |
pandas/core/computation/expr.py
Outdated
@@ -670,19 +670,26 @@ def visit_Call(self, node, side=None, **kwargs): | |||
) | |||
|
|||
return res(*new_args) | |||
elif isinstance(res, np.ufunc): | |||
new_args = [self.visit(arg) for arg in node.args] |
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.
what is this for / from?
@@ -727,6 +727,10 @@ def test_line_continuation(self): | |||
result = pd.eval(exp, engine=self.engine, parser=self.parser) | |||
assert result == 12 | |||
|
|||
def test_floor_expression(self): |
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.
what is this?
pandas/tests/dtypes/test_concat.py
Outdated
# Regression test for issue 25257 | ||
df = pd.DataFrame({'timestamp': [pd.Timestamp('2020-04-08 09:00:00.709949+0000', | ||
tz='UTC')], }) | ||
result = pd.concat([df], copy=False) |
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 push up the change
@SurajH1 i've pushed a few changes to the branch of this PR. I notice you raised the PR from master. In future you should create a seperate branch, see https://pandas.pydata.org/docs/dev/development/contributing.html#creating-a-branch |
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.
Thanks @SurajH1 and @simonjayhawkins ! |
…Error (pandas-dev#33458) Co-authored-by: Simon Hawkins <[email protected]>
…n version 0.24.1 but passes on current version