Generation

generate functionTue, 24 Jan 2023

# machine learning from stock data # plot stock data

import datetime as dt import matplotlib.pyplot as plt from matplotlib import style import pandas as pd import pandas_datareader.data as web # get data from yahoo df = web.DataReader('TSLA', 'yahoo', start, end) print(df.head()) # save data to csv file df.to_csv('tsla.csv')

Want to kickstart your project?Use the new AI Studio to create your code