4/05/2022

Get google stock date using pandas.

 

refer to sample code

..

import datetime
import pandas_datareader.data as pdr
# We will look at stock prices over the past year, starting at January 1, 2016
start = (2000, 12, 1)
start = datetime.datetime(*start)
end = datetime.date.today()

google = pdr.DataReader('028050.KS', 'yahoo', start, end)
google.Low.plot(grid=True)

..



Thank you.

www.marearts.com

No comments:

Post a Comment