Skip to content

Instantly share code, notes, and snippets.

@travis23
Last active July 7, 2020 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save travis23/8a32c94e43d74899f83b6eeab4aadcc7 to your computer and use it in GitHub Desktop.
Save travis23/8a32c94e43d74899f83b6eeab4aadcc7 to your computer and use it in GitHub Desktop.
[remove points that contain non-unique time values from timeseries] #numpy #values #unique #python #strictly_increasing #timeseries
indices = np.unique(time_arr.values, return_index=True)[1]
time_strict = time_arr.values[indices]
response_strict = response_arr.values[indices]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment