Fun with Python & Code Snippets

Download stock data using Yahoo Finance & Charting:

Data Visualization : Histogram Example

Magnificent Seven Stock Analysis:

Five year stock price analysis of top 7 companies in the world.

Magnificent 7 Get Key Stats using 3rd party API (FMD):

FMD provides one of the most accurate financial data available on the market.
You can get historical prices, fundamental data, insider transactions, and much more that goes back 30 years in history.

Magnificent 7 DCF Analysis using 3rd party API (FMD):

DCF Analysis on Magnificent 7 stocks using FMD API

Magnificent 7 Margin Analysis using 3rd party API (FMD):

Margin, ROIC Analysis on Magnificent 7 stocks using FMD API

Getting Stats using FinViz:


Getting Stats using Yahoo Finance:

Using FinViz API

Dow 30 Stocks Analysis using K-Means Clustering:

K-Means Clustering is an Unsupervised Machine Learning algorithm, which groups the unlabeled dataset into different clusters.

Bitcoin Stats Analysis using Yahoo Finance:

Data Visualization : Density plot using Python:

Data Visualization : One Dimensional Data Set



Data Visualization : Two Dimensional Data Set


Data Visualization : Two Dimensional Data Set with Scaling Data


Data Visualization : Two Dimensional Data Set with two subplots


Data Visualization : Two Dimensional Data Set with two subplots


Data Visualization : Two Dimensional Data Set w/Line and Bar Charts


Data Visualization : Scatter Plot for 2D vector


Data Visualization : Single colorbar to multiple subplots


Data Visualization : Stacked histogram for two data sets


Data Visualization : Histogram Using Colorbar


Data Visualization : Scatter Plot with 3D Plot


Data Visualization : Boxplot for two data sets


Data Visualization : Exponential function, integral area, and LaTeX labels


Data Visualization : Using Plotly to plot stock prices


Data Visualization : Using Plotly to plot RSI


Data Visualization : Using MPLFinance Library Plot Candlestick Chart


Data Visualization : Visualizing Stock Correlations with Heatmaps



Data Visualization : Company Total Revenue using Yahoo Finance


Data Visualization : Company EBIT using Yahoo Finance


Data Visualization : Visualizing Financial Models with 3D Surface Plots



Data Visualization : Fast Fourier Transform (FFT) of square wave


Data Visualization : Google Trends using Pytrends


Data Visualization : Generate Sine, Square, Triangle, Sawtooth


Data Visualization : Heatmap Example




Calculus : Derivatives of a function

Calculus : Limits Example

Calculus : Trig function example

Understanding Insertion Sort:

Find if a number is prime:

Factorial using recursion:

Equilibrium Index IN Array using Python:

Roman to Integer: Leet Problem


LaTeX math description from Python functions (Fibonacci Example):

Below shows how to use LaTex library using a simple Fibonacci series.

Convert from decimal number to binary

Recursive call.

Program to convert input from user as integer between 0 and 100000 into a word.

Also shows exception handling and continous loop.

Lambda examples as function

Lambda Examples

Show Map using Folium Library:

Map of San Francisco using local coordinates.

Learning Colorama

Using colorama we can have colorful console output.

Christmas Tree using Colorama

Using numpy and colorama.

Happy New Year using Colorama


Happy New Year using Word Cloud API

IMDB Movie Search API example


Chemistry Facts and Periodic Table API

Find Hex Code for a Color using webcolors API

How to calculate number of days passed in Python

Comparing 4 AI in the world

S&P 500 Volatility Analysis

S&P 500 Trend Analysis using rolling mean of Pandas

S&P 500 Historical Volatility Analysis using rolling std dev.



Using Lambda Function to find if a number is prime

Understanding Python Map Function

Understanding Python Reduce Function

Palindrome Number finder, quick strategy

Python Regular Expression

Given an input string s and a pattern p, implement regular expression

Compounding Effect Magic : A simple Investment Strategy

ML Algorithms Chart


AryaFin Engine© - An AI FinTech Venture - 2024-25 Disclaimer