arrow icon indicating copy to clipboard operation
arrow copied to clipboard

GH-41389: [Python] Expose byte_width and bit_width of ExtensionType in terms of the storage type

Open llama90 opened this issue 9 months ago • 5 comments

Rationale for this change

This update aligns the Python API with Arrow C++ by exposing the actual byte and bit widths of extension types from their storage type.

What changes are included in this PR?

  • Expose byte_width and bit_width properties for ExtensionType in Python, reflecting the underlying storage type.
  • Add unit tests to verify these properties

Are these changes tested?

Yes

Are there any user-facing changes?

Yes

  • GitHub Issue: #41389

llama90 avatar Apr 27 '24 18:04 llama90