Skip to content
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

fix: ak.to_numpy does not properly convert lists of empty string #2449

Merged
merged 2 commits into from
May 10, 2023

Conversation

agoose77
Copy link
Collaborator

@agoose77 agoose77 commented May 9, 2023

Fixes #2364

@agoose77 agoose77 requested a review from jpivarski May 9, 2023 13:18
@agoose77 agoose77 marked this pull request as ready for review May 9, 2023 13:19
@codecov
Copy link

codecov bot commented May 9, 2023

Codecov Report

Merging #2449 (b7971d3) into main (bbd4fc4) will decrease coverage by 0.01%.
The diff coverage is 85.71%.

Additional details and impacted files
Impacted Files Coverage Δ
src/awkward/contents/regulararray.py 88.78% <66.66%> (-0.36%) ⬇️
src/awkward/contents/listarray.py 91.38% <100.00%> (+0.06%) ⬆️
src/awkward/contents/listoffsetarray.py 80.87% <100.00%> (+0.02%) ⬆️

@agoose77 agoose77 temporarily deployed to docs-preview May 9, 2023 13:32 — with GitHub Actions Inactive
Copy link
Member

@jpivarski jpivarski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea. That would be a surprise, only happening for empty arrays.

@agoose77 agoose77 merged commit bc1b536 into main May 10, 2023
34 checks passed
@agoose77 agoose77 deleted the agoose77/fix-to-numpy-empty-string branch May 10, 2023 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ak.to_numpy turns an empty array of type string into an empty array of type float64
2 participants