(data, size, fill_value=numpy.nan, push_back=True)
return numpy.append(numpy.repeat(fill_value, size - data.size), data)
Fill array with given values to reach the size
Fill array with given values to reach the size
Fill array with given values to reach the size
def fill_array(data, size, fill_value=numpy.nan, push_back=True):
    """
    Fill array with given values to reach the size
    """

    if push_back:
        return numpy.append(data, numpy.repeat(fill_value, size - data.size))

    return numpy.append(numpy.repeat(fill_value, size - data.size), data)
def fill_array ( data , size , fill_value = numpy . nan , push_back = True ) : if push_back : return numpy . append ( data , numpy . repeat ( fill_value , size - data . size ) ) return numpy . append ( numpy . repeat ( fill_value , size - data . size ) , data )