Last active
February 26, 2020 08:25
-
-
Save quantra-go-algo/d399ffefb0e7b91a0b19cdec16f5b6e5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Creating a time series with random numbers | |
| import numpy as np | |
| from random import random | |
| dates = [datetime(2011, 1, 2), datetime(2011, 1, 5), datetime(2011, 1, 7), datetime(2011, 1, 8), datetime(2011, 1, 10), datetime(2011, 1, 12)] | |
| ts = pd.Series(np.random.randn(6), index=dates) | |
| ts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment