Learn the fundamentals of financial analysis with Python — setting up your environment, working with data, and performing your first stock analysis
Tutorial series
Python for Finance
5 tutorials — follow in order for the best learning path.
- Python for Finance: Getting Started
- Fetching Stock Data with yfinance
Learn how to download and analyze stock market data using Python's yfinance library.
- Calculating Returns and Volatility
Learn how to calculate simple and log returns, annualized returns, and volatility measures for stock data analysis using Python
- Portfolio Analysis in Python
Learn how to analyze investment portfolios using Python — calculate returns, volatility, Sharpe ratio, and visualize performance
- Backtesting a Simple Strategy
Learn how to backtest trading strategies in Python — build a moving average crossover strategy and analyze key performance metrics