[SciPy-User] Replace duplicates in a monotonically increasing array with linearly interpolated values.
Dharhas Pothina
Dharhas.Pothina at twdb.state.tx.us
Tue Sep 14 15:03:57 EDT 2010
Vincent,
> 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