if you want to isolate both Date
and Close
columns in a separate dataframe 'close_df' you can use:
close_df=tickerDf[['Date','Close']]
close_df.set_index('Date')
and, if you want Close
values in a list 'closed_values_list', use
closed_values_list= list(tickerDf['Close'])
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…