Skip to content

Commit

Permalink
tests fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jreback committed Jul 4, 2017
1 parent f5ca573 commit b2eef2d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pandas/core/internals.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,6 @@ def fillna(self, value, limit=None, inplace=False, downcast=None,
else:
return self.copy()

original_value = value
mask = isnull(self.values)
if limit is not None:
if not is_integer(limit):
Expand All @@ -398,10 +397,13 @@ def fillna(self, value, limit=None, inplace=False, downcast=None,

# operate column-by-column
def f(m, v, i):

print("value: {}".format(value))
print("block: {}".format(self))
# try again with a compatible block
block = self.coerce_to_target_dtype(original_value)
return block.fillna(original_value,
block = self.coerce_to_target_dtype(value)
print("coerced block: {}".format(block))

return block.fillna(value,
limit=limit,
inplace=inplace,
downcast=False)
Expand Down

0 comments on commit b2eef2d

Please sign in to comment.