Download Financial Data from Yahoo Finance using Python
【Online Courses】 ⚡Getting Started with Stata: (24 lectures + 4 assignments = 5.5 hours content): available on Udemy: https://www.udemy.com/course/getting-started-with-stata/?referralCode=337F796C4A4C63DD833F ⚡Applied Time Series using Stata (29 lectures + 4 assignments = 6.5 hours content): available on Udemy: https://www.udemy.com/course/applied-time-series-using-stata/?referralCode=BD2C5527F49135B8A71D This tutorial covers the Python package yfinance, which enables us to connect to Yahoo Finance (API). We download data for the Bitcoin-USD trade and work with the Pandas DataFrame. Finally, we visualise the data using Matplotlib. The material including the code is on GitHub (https://github.com/GerhardKling/DataWrangling/tree/main/YahooFinance). I show you how to create and activate a virtual environment (which is optional – but useful to do). We use the pip installer. If you do not have the pip installer, download get-pip.py. The download needs to be in same path as your Python installation - then change the directory into the folder. Using the command line, type: python get-pip.py, and finally check the installation: pip -V. To install virtual environments, use: pip install virtualenv Please leave a comment if you have any questions. Python is the way! *The channel* YUNIKARN focuses on publishing educational content in applied statistics, mathematics, and data science. In these fields, programming skills have become essential. Hence, we cover various programming languages including Python, Stata, and C++ to tackle problems and for fun. *Stay in touch* Please leave comments or follow us on Twitter (https://twitter.com/GerhardklingS). DMs are open. *Hashtags* #datascience #python #yahoofinance
Download
1 formatsVideo Formats
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.