Open
Description
Looking at the fillna code, it looks like a mask is generated and then the fill value is then put in using putmask. Wouldn't it be faster if we skipped the mask generation and just put in nan values directly by looping over in Cython.
pandas/pandas/core/internals/blocks.py
Lines 430 to 470 in 98e2229
I can take this issue up if this is the correct approach