I tried the "way" you said I got all in same line but when I used
print(aapl.index)
print(aapl.columns)
I got this
RangeIndex(start=0, stop=1845, step=1)
Index(['Date', 'Open', 'High', 'Low', 'Close', 'Adj Close', 'Volume'], dtype='object')
I want to use obv column in my strategy but as it is not in column I am not able to use it in my conditions
also wen I set date as my index again my all obv values got nan
so basically we canot keep date as a index while displaying obv values??
print(aapl.index)
print(aapl.columns)
I got this
RangeIndex(start=0, stop=1845, step=1)
Index(['Date', 'Open', 'High', 'Low', 'Close', 'Adj Close', 'Volume'], dtype='object')
I want to use obv column in my strategy but as it is not in column I am not able to use it in my conditions
also wen I set date as my index again my all obv values got nan
so basically we canot keep date as a index while displaying obv values??