[SciPy-User] Replace duplicates in a monotonically increasing array with linearly interpolated values.

Dharhas Pothina Dharhas.Pothina@twdb.state.tx...
Tue Sep 14 14:03:57 CDT 2010


> Hmm, something like this should do the trick (not tested):
> xUnique, xUniqueIndices = scipy.unique(x, return_index=True)

Neither numpy.unique or scipy.unique seem to have a return_index keyword arg.

- dharhas

More information about the SciPy-User mailing list