Skip to content

Instantly share code, notes, and snippets.

@quantra-go-algo
Created February 21, 2020 08:12
Show Gist options
  • Save quantra-go-algo/41bcf4759ee332f431ddc9089d9b4d46 to your computer and use it in GitHub Desktop.
Save quantra-go-algo/41bcf4759ee332f431ddc9089d9b4d46 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