Python for Traders

Top Quant Python Libraries for Quantitative Finance

Top Python libraries for quantitative finance: pandas, NumPy, QuantLib, VectorBT, TA-Lib and more, with 2026 status and which ones to learn...
Rajandran R Rajandran R
10 min read

Introduction to NumPy – Python Tutorials for Traders

NumPy is a Python library that provides support for large, multi-dimensional arrays and matrices, along with a large collection of mathematical...
Rajandran R Rajandran R
4 min read

Predicting Gap Up, Gap Down, or No Gap in Stock Prices using Logistic Regression

Logistic Regression is a popular statistical method used for predicting binary outcomes, such as predicting whether an email is spam or...
Rajandran R Rajandran R
4 min read

A Quick Start Guide to Compute Correlation Matrix in Python using yFinance, Seaborn and Pandas

Build a stock correlation matrix in Python with yFinance, Pandas and Seaborn, fix the Adj Close KeyError in new yfinance, and...
Rajandran R Rajandran R
5 min read

AdaBoost – Ensembling Methods in Machine Learning for Stock Market Prediction using Python

In this article, we will discuss how ensembling methods, specifically bagging, boosting, stacking, and blending, can be applied to enhance stock...
Rajandran R Rajandran R
6 min read
Feature Scaling

Feature Scaling – Normalization Vs Standardization Explained in Simple Terms – Machine Learning Basics

Feature scaling is a preprocessing technique used in machine learning to standardize or normalize the range of independent variables (features) in...
Rajandran R Rajandran R
2 min read

Python Code for Generating Nifty Weekly Expiry Dates Using ChatGPT-4

Generate Nifty weekly expiry dates in Python: the original ChatGPT-4 code for 2023 and an updated 2026 version for Tuesday expiry,...
Rajandran R Rajandran R
7 min read

Predicting Stock Price and Market Direction using XGBoost Machine Learning Algorithm

XGBoost stock market prediction in Python on Nifty data: the original model, why its 0.9996 R-squared misleads, and a tested 2026...
Rajandran R Rajandran R
8 min read

Learning Linear Regression – Simple Machine Learning Based Prediction Algorithm for Forecasting Stock Price

Linear regression is a type of supervised learning algorithm that makes predictions based on a linear relationship between the input variables...
Rajandran R Rajandran R
4 min read
Introduction to Pandas DataFrame – Python Tutorial for Traders – Part 2

Introduction to Pandas DataFrame: Python Tutorial for Traders, Part 2

In the first part of this pandas tutorial for traders , we explored creating and manipulating Pandas DataFrames using the library...
Rajandran R Rajandran R
3 min read

Introduction to Pandas DataFrame – Python Tutorial for Traders – Part 1

Learn the Pandas DataFrame for trading in Python: fetch stock data from Yahoo Finance, then select, filter and manipulate price data...
Rajandran R Rajandran R
6 min read

Nifty Daily Returns – Distribution Statistics – Python Code

The Nifty index is one of the most popular stock market indices in India among traders and investors, and it tracks...
Rajandran R Rajandran R
2 min read