-
Notifications
You must be signed in to change notification settings - Fork 4k
GH-48452: [Python] Add tests for Date32 and Date64 array creation with masks #48453
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
base: main
Are you sure you want to change the base?
Conversation
|
|
|
|
||
|
|
||
| def test_safe_cast_from_float_with_nans_to_int(): | ||
| # TODO(kszucs): write tests for creating Date32 and Date64 arrays, see |
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.
This comment is for Date32 and Date64 types, is it correct to remove this comment? (New tests are float -> int)
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 was assuming that it is a mistake (from reading #3395 (comment)) ;-).
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.
Yeah, it is a bit confusing. Maybe some info can be found in the code in this comment: #3395 (comment)
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.
Ah, thanks. Let me try!
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 think current tests fit better! One more question, would we also use numpy when creating date arrays?
7263573 to
71564e8
Compare
71564e8 to
924a960
Compare
b551ecf to
060c546
Compare
Rationale for this change
The original ticket ARROW-4258 missed the followup task, see also #3395 (comment)
Adding the test originally intended to test.
What changes are included in this PR?
Added the tests dates with masks
Are these changes tested?
Yes, manually tested as below:
Are there any user-facing changes?
No, test-only.