Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Commit

Permalink
Implement dtype.itemsize
Browse files Browse the repository at this point in the history
  • Loading branch information
xhochy committed Jan 17, 2021
1 parent e498308 commit f913dd1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fletcher/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@ def name(self) -> str:
"""
return str(self)

@property
def itemsize(self) -> int:
return self.arrow_dtype.bit_width

@property
def _is_boolean(self):
return pa.types.is_boolean(self.arrow_dtype)
Expand Down

0 comments on commit f913dd1

Please sign in to comment.