Skip to content

Commit a7ea2ba

Browse files
jrebackPingviinituutti
authored andcommitted
TST: run setitem tests for IntegerArray (pandas-dev#24054)
* TST: run setitem tests for IntegerArray * doc-string
1 parent 4346de4 commit a7ea2ba

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

pandas/core/arrays/integer.py

+5
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ def numpy_dtype(self):
5858
def kind(self):
5959
return self.numpy_dtype.kind
6060

61+
@cache_readonly
62+
def itemsize(self):
63+
""" Return the number of bytes in this dtype """
64+
return self.numpy_dtype.itemsize
65+
6166
@classmethod
6267
def construct_array_type(cls):
6368
"""Return the array type associated with this dtype

pandas/tests/extension/test_integer.py

+4
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@ class TestGetitem(base.BaseGetitemTests):
174174
pass
175175

176176

177+
class TestSetitem(base.BaseSetitemTests):
178+
pass
179+
180+
177181
class TestMissing(base.BaseMissingTests):
178182
pass
179183

0 commit comments

Comments
 (0)