plotting two lines on one graph using quandl databases
I'm attempting to try to plot both of these on one graph but I keep having two graphs pop up. Can anyone help me out with where I may be going wrong? Thanks! -Chris
import quandl import pandas as pd import datetime import pandas.io.data as web import matplotlib.pyplot as plt from matplotlib import style
start = datetime.datetime(2008, 1, 1) end = datetime.datetime(2016, 8, 21)
You must be logged in to post. Please login or register an account.
If you want to plot them on the same axis using that specific method, then you'd need to merge the two dataframes into one dataframe, then plot both columns at the same time.
-Harrison 8 years ago
You must be logged in to post. Please login or register an account.
thanks! i will give this a shot tomorrow morning. much appreciated.
-cmoyer212 8 years ago
You must be logged in to post. Please login or register an account.
Harrison,
I was able to plot both of these but I need to adjust the Y scale as value and X scale as years. Any advice would be appreciated. Thank you!
[CODE] import quandl import pandas as pd import datetime import pandas.io.data as web import matplotlib.pyplot as plt from matplotlib import style