Python Basics Tutorial How Handle Pandas Dataframe Multi Column Index For Stock Data

preview_player
Показать описание
Learn how to work with Multi-Column Indexing for pandas for python programming

twitter: @python_basics

#pythonprogramming #pythonbasics #pythonforever
Рекомендации по теме
Комментарии
Автор

First, thank you for all your videos related to stock market; Second, Is possible when you work with Python's Dictionary (data_d = {}) to extract not only a SINGLE column (in your example you've used "Close") but with all the columns 'OHLCV' at the same time? thanks

robertogustuti
Автор

Hi, I have the same question as Roberto. I have tried 
data_d = {}
for i in symbols:
data_test[i] = stocks[['Open', 'High', 'Low', 'Close', 'Volume', 'Adj Close']][I]
without success. My motivation is to generate a candlestick plot for each tick symbol.
Thanks for the great tutorials.

dougveilleux
welcome to shbcf.ru