Hi,
I'm trying to do some math operations on the the minute by minute prices of stocks however I'm coming across a weird error. When I run the below code the output is more information than I want;
Code:
num1 = data.history(stock, 'price', 1, '1m')
print num1
Output:
2016-06-01 PRINT 2016-05-31 20:00:00+00:00 99.86
Name: Equity(24 [AAPL]), dtype: float64
All I'd really like from the output is the price value (99.86). The rest of the information seems to be causing me issue with the math I do later in my algorithm.
Note: I actually will look further back than 1 minute, and I might have more than a single minute in this variable so I'm expecting to fill an array if I call:
num1 = data.history(stock, 'price', 10, '1m')