, value)[source]#

Return a new data array with the same shape, type and units as a given object.

  • xdata (pint.Quantity or numpy.ndarray) – The reference object input.

  • value (scalar) – Value to fill the new object with before returning it.


New object with the same shape and type as other, with the data filled with fill_value. Units will be taken from the input if present.

Return type:

pint.Quantity or numpy.ndarray