Skip to content

Instantly share code, notes, and snippets.

@quantra-go-algo
Last active February 26, 2020 08:25
Show Gist options
  • Select an option

  • Save quantra-go-algo/22e7499ecff4d898ea7d2b73979323f7 to your computer and use it in GitHub Desktop.

Select an option

Save quantra-go-algo/22e7499ecff4d898ea7d2b73979323f7 to your computer and use it in GitHub Desktop.
# Creating a time series with duplicated indices
datesdup = [datetime(2018, 1, 1), datetime(2018, 1, 2), datetime(2018, 1, 2), datetime(2018, 1, 2), datetime(2018, 1, 3)]
dup_ts = pd.Series(np.random.randn(5), index=datesdup)
dup_ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment