The DataFrame chart function returns an AxesSubplot object, and you can add as many rows to it as you want. Take a look at the sample code below:
%matplotlib inline import pandas as pd df = pd.DataFrame(index=pd.date_range("2019-07-01", "2019-07-31")) df["y"] = pd.np.logspace(0, 1, num=len(df)) ax = df.plot() # you can add here as many lines as you want ax.axhline(6, color="red", linestyle="--") ax.axvline("2019-07-24", color="red", linestyle="--")

Roman Orac Sep 10 '19 at 10:58 on 2019-09-10 10:58
source share