Skip to content

[Python] Missing byte_width attribute on most datatypes #39277

@pitrou

Description

@pitrou

Describe the enhancement requested

This is a small annoyance:

>>> pa.binary(11).bit_width
88
>>> pa.binary(11).byte_width
11
>>> pa.int64().bit_width
64
>>> pa.int64().byte_width
Traceback (most recent call last):
  Cell In[2], line 1
    pa.int64().byte_width
AttributeError: 'pyarrow.lib.DataType' object has no attribute 'byte_width'

Component(s)

Python

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions