On the off chance that you are utilizing Quantopian, it is fitting that you become acquainted with numpy and pandas. For instance
>>> import numpy as np
>>> -1*np.arange(20)
array([ 0, -1, -2, -3, -4, -5, -6, -7, -8, -9, -10, -11, -12,
-13, -14, -15, -16, -17, -18, -19])
Later, you will have a[1]==-1, a[5]==5, etc.
Looking for a good python tutorial course? Join the python certification course and get certified.
For more details, do check out the below video tutorial...