Skip to content

Commit

Permalink
na formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAugspurger committed Nov 9, 2018
1 parent fef04e6 commit 1885a97
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pandas/core/arrays/integer.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,13 @@ def _from_sequence(cls, scalars, dtype=None, copy=False):
def _from_factorized(cls, values, original):
return integer_array(values, dtype=original.dtype)

def _formatter(self, boxed=False):
def fmt(x):
if isna(x):
return 'NaN'
return str(x)
return fmt

def __getitem__(self, item):
if is_integer(item):
if self._mask[item]:
Expand Down

0 comments on commit 1885a97

Please sign in to comment.