-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TST: Assign back multiple column to datetime #46982
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
This tests make sure when converting multiple columns to datetimes and when assiging back it remains as datetime not as unix date as mentioned in GH pandas-dev#20511.
pandas/tests/indexing/test_iloc.py
Outdated
@@ -1363,6 +1382,25 @@ def test_frame_iloc_setitem_callable(self): | |||
exp.iloc[[1, 3], [0]] = [-5, -5] | |||
tm.assert_frame_equal(res, exp) | |||
|
|||
def test_frame_iloc_setitem_callable_multicolumn_to_datetime( |
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.
I don't think this test is needed? It looks similar to the other test.
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.
I have used apply to convert to datetime. Yeah it's kind of look similar. Removed
thanks @parthi-siva |
This tests make sure when converting multiple columns to datetimes
and when assiging back it remains as datetime not as unix date
as mentioned in GH #20511.