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

ENH: Expose ArrowIntervalType and ArrowPeriodType in the public API #48322

Open
mroeschke opened this issue Aug 30, 2022 · 2 comments
Open

ENH: Expose ArrowIntervalType and ArrowPeriodType in the public API #48322

mroeschke opened this issue Aug 30, 2022 · 2 comments
Labels
Arrow pyarrow functionality Enhancement

Comments

@mroeschke
Copy link
Member

In cuDF (rapidsai/cudf#11617 (comment)), ArrowIntervalType is used when creating a cuDF column from an interval arrow array (that can original from pandas). Would it make sense to expose ArrowIntervalType and ArrowPeriodType in the public API?

cc @jorisvandenbossche @shwina @galipremsagar

@jbrockmendel
Copy link
Member

any particular reason not to parametrize these like the others?

@mroeschke
Copy link
Member Author

mroeschke commented Sep 7, 2022

IIUC these are conceptually different than pd.ArrowType as they are pyarrow extension types (subclass pyarrow.ExtensionType) necessary convert pandas Interval & Period types to pyarrow via __arrow_array__ (? cc @jorisvandenbossche)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arrow pyarrow functionality Enhancement
Projects
None yet
Development

No branches or pull requests

2 participants