-
Notifications
You must be signed in to change notification settings - Fork 93
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
Closes #2559 - dataframe_test.py
conversion for new framework
#2580
Closes #2559 - dataframe_test.py
conversion for new framework
#2580
Conversation
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.
Looks good
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.
Only requesting changes for updating the test_drop
since that's currently not testing the right thing for the inplace
case. The rest is not as important
@pierce314159 - I believe I addressed everything, but please let me know if I missed something. |
…nd possible simplications.
…updates pdarray creation to detect numpy.object_ with str elements.
61d513f
to
169f0d0
Compare
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.
Looks good!
Closes #2559
Updates the existing
dataframe_test.py
to function within the new test framework. Specific test forto_pandas
was removed because this functionality is used in the majority of tests and does not require testing on its own. There is not a lot of parameterization here as I believe the cases we are dealing with are fairly representative. We may want to add additional general case testing in the future, but should not be required here.This PR also adds a
to_list
method toak.Series
for use within test validation.This PR updates
ak.array
to check the first element of anndarray
if itsdtype=numpy.object_
. This case can also occur withBigInt
so we need to determine if the elements are strings or not for processing. This required a simple modification to anif
block. I validated that all existing test cases pass with this modification as well.