Skip to content

Commit 1885a97

Browse files
committed
na formatter
1 parent fef04e6 commit 1885a97

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pandas/core/arrays/integer.py

+7
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,13 @@ def _from_sequence(cls, scalars, dtype=None, copy=False):
264264
def _from_factorized(cls, values, original):
265265
return integer_array(values, dtype=original.dtype)
266266

267+
def _formatter(self, boxed=False):
268+
def fmt(x):
269+
if isna(x):
270+
return 'NaN'
271+
return str(x)
272+
return fmt
273+
267274
def __getitem__(self, item):
268275
if is_integer(item):
269276
if self._mask[item]:

0 commit comments

Comments
 (0)