[5] Getting and visualizing stock data with Python

preview_player
Показать описание
This video explores the yfinance library to get stock data from yahoo finance, and altair to visualize the data.
Рекомендации по теме
Комментарии
Автор

Great video (again!!)

I like the simplicity of the modules you've suggested.

If you feel like experimenting with something a little more complex, have a look at matplotlib for data visualization. It has some amazing data plotting features, but with complexity comes more code!

Also, if you haven't already used it before, pandas_datareader is also good for pulling stock data and integrates nicely with pandas. I haven't compared this vs. yfinance, so I don't know if one is better than the other. So, just sharing info.

Cheers!

eurocanuck
Автор

Hi, I am using pycharm and when i run the code, nothing happens in the python console, like i dont see any graph, i only get returned this - "alt.Chart(...)". Any idea what is possibly going wrong? Thanks in advance

kaartiki
Автор

can you make a video where you use yfinance on a daily chart. getting price, volume, 30 minute ma, 60 minute moving average, vwap.

rverm
Автор

Hi! Great video. Can you advise how to plot multiple stocks on the same chart?

dreytangerine
Автор

Had to use:
import datetime
data.loc[datetime.datetime(2024, 3, 1)].Close

kept saying "AttributeError: module 'pandas' has no attribute 'datetime'"

SamWattRock
Автор

Is there a way to use Altair in vscode now? Thanks a lot.

economiagonzalezfi