def spline_filter1d(input, order=3, axis=(- 1), output=numpy.float64, output_type=None):
    'Calculates a one-dimensional spline filter along the given axis.\n\n    The lines of the array along the given axis are filtered by a\n    spline filter. The order of the spline must be >= 2 and <= 5.\n    '
    if ((order < 0) or (order > 5)):
        raise RuntimeError('spline order not supported')
    input = numpy.asarray(input)
    if numpy.iscomplexobj(input):
        raise TypeError('Complex type not supported')
    (output, return_value) = _ni_support._get_output(output, input, output_type)
    if (order in [0, 1]):
        output[...] = numpy.array(input)
    else:
        axis = _ni_support._check_axis(axis, input.ndim)
        _nd_image.spline_filter1d(input, order, axis, output)
    return return_value
Calculates a one-dimensional spline filter along the given axis.

The lines of the array along the given axis are filtered by a
spline filter. The order of the spline must be >= 2 and <= 5.
def spline_filter1d(input, order=3, axis=(- 1), output=numpy.float64, output_type=None):
    'Calculates a one-dimensional spline filter along the given axis.\n\n    The lines of the array along the given axis are filtered by a\n    spline filter. The order of the spline must be >= 2 and <= 5.\n    '
    if ((order < 0) or (order > 5)):
        raise RuntimeError('spline order not supported')
    input = numpy.asarray(input)
    if numpy.iscomplexobj(input):
        raise TypeError('Complex type not supported')
    (output, return_value) = _ni_support._get_output(output, input, output_type)
    if (order in [0, 1]):
        output[...] = numpy.array(input)
    else:
        axis = _ni_support._check_axis(axis, input.ndim)
        _nd_image.spline_filter1d(input, order, axis, output)
    return return_value