import pandas as pd import yfinance as yf import time def optimized(): pass