def fillforward(nds):
    for col in range(nds.shape[1]):
        for row in range(1, nds.shape[0]):
            if math.isnan(nds[row, col]):
                nds[row, col] = nds[row-1, col]
Basic data instances.
dataset/ETHPy150Open QuantSoftware/QuantSoftwareToolkit/QSTK/qstkutil/tsutil.py/fillforward--crossover with--dataset/ETHPy150Open renatopp/liac-arff/tests/test_data.py/TestCOOData.test_sparse