Skip to content

Instantly share code, notes, and snippets.

View amsingh17's full-sized avatar

Amit Singh amsingh17

View GitHub Profile
@amsingh17
amsingh17 / stock_market_pct_change_2023.py
Created January 26, 2024 04:19
Heatmap chart showing stock market percentage change per day (2023 VOO)
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import yfinance as yf
import datetime
from matplotlib.colors import LinearSegmentedColormap
ticker = yf.Ticker("VOO")
@amsingh17
amsingh17 / march_madness_2023.py
Last active March 16, 2023 02:14
Simulate the 2023 Men’s NCAA Tournament Bracket
import numpy as np
import time
""" 2023 Men's NCAA Tournament Bracket """
bracket = [
# South Region
('Alabama', 1),
('AMCC / SMO', 16),
@amsingh17
amsingh17 / march_madness_2022.py
Last active March 21, 2022 19:19
Simulate the 2022 Men’s NCAA Tournament Bracket
import numpy as np
""" 2022 Men's NCAA Tournament Bracket """
bracket = [
# West Region
('GONZ', 1),
('GAST', 16),
('BSU', 8),