Repository navigation
Closes #5219: improve astype in ak.pandas.extension - #5222
Merged
ajpotts merged 4 commits intoFeb 10, 2026
Merged
Conversation
ajpotts
force-pushed
the
5219_improve_astype_in_ak.pandas.extension
branch
from
December 24, 2025 22:12
f7d1dfc to
1935bed
Compare
ajpotts
marked this pull request as ready for review
December 29, 2025 18:04
ajpotts
force-pushed
the
5219_improve_astype_in_ak.pandas.extension
branch
from
January 16, 2026 18:36
1935bed to
f378f3d
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5222 +/- ##
========================================
Coverage ? 100.00%
========================================
Files ? 5
Lines ? 109
Branches ? 0
========================================
Hits ? 109
Misses ? 0
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
ajpotts
force-pushed
the
5219_improve_astype_in_ak.pandas.extension
branch
from
January 16, 2026 19:15
f378f3d to
f023951
Compare
ajpotts
force-pushed
the
5219_improve_astype_in_ak.pandas.extension
branch
2 times, most recently
from
January 16, 2026 22:38
8731d2d to
28111d6
Compare
drculhane
approved these changes
Jan 23, 2026
drculhane
left a comment
Contributor
There was a problem hiding this comment.
Looks solid and straightforward.
ajpotts
force-pushed
the
5219_improve_astype_in_ak.pandas.extension
branch
3 times, most recently
from
January 26, 2026 16:27
cb28662 to
2ddc1b4
Compare
drculhane
approved these changes
Jan 27, 2026
ajpotts
force-pushed
the
5219_improve_astype_in_ak.pandas.extension
branch
from
February 2, 2026 20:55
2ddc1b4 to
323d4f5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Improve
astypesemantics across Arkouda pandas ExtensionArraysSummary
This PR implements fully-featured, pandas-compatible
astypebehavior for all Arkouda-backed pandas ExtensionArrays:ArkoudaArrayArkoudaCategoricalArrayArkoudaStringArrayThe implementation aligns with pandas’
ExtensionArray.astypecontract, avoids unnecessary NumPy fallbacks, and consistently returns Arkouda-backed ExtensionArrays whenever possible.In addition, this PR:
mypy"string"support)ExtensionDtypecastingKey Changes
Correct, consistent
astypebehaviorobject→ always returns NumPycopy=False→ returns selfcategory→ stays categoricalstring→ArkoudaStringArrayArkoudaStringArrayRuntimeError(documented and tested)Pandas compatibility & typing
@overloadsignatures matching pandasExtensionArray.astypemypyoverride and return-type errorsTests
New test coverage includes:
ExtensionDtypetargets (pd.Int64Dtype,pd.StringDtype, etc.)Why this matters
astypeCloses #5219: improve astype in ak.pandas.extension