Skip to content

Commit b2eef2d

Browse files
committed
tests fix
1 parent f5ca573 commit b2eef2d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

pandas/core/internals.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,6 @@ def fillna(self, value, limit=None, inplace=False, downcast=None,
371371
else:
372372
return self.copy()
373373

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

399398
# operate column-by-column
400399
def f(m, v, i):
401-
400+
print("value: {}".format(value))
401+
print("block: {}".format(self))
402402
# try again with a compatible block
403-
block = self.coerce_to_target_dtype(original_value)
404-
return block.fillna(original_value,
403+
block = self.coerce_to_target_dtype(value)
404+
print("coerced block: {}".format(block))
405+
406+
return block.fillna(value,
405407
limit=limit,
406408
inplace=inplace,
407409
downcast=False)

0 commit comments

Comments
 (0)