I would like to create an array which is filled with identical tuples initially, specifically with tuples of NaN.
E.g.,
array([[(nan, nan), (nan, nan)],
[(nan, nan), (nan, nan)],
[(nan, nan), (nan, nan)]], dtype=object)
However, when using the array initialisations listed e.g. here with an iterable value as value for filling in array, python apparently tries to reshape that iterable into the new array rather than fill it with it:
np.full([3,2],(np.nan,np.nan,np.nan),dtype=tuple)
#ValueError: could not broadcast input array from shape (3) into shape (3,2)
np.fill does not work either, it requires a scalar.
Is it only possible to fill the array item by item?