Home > Blockchain >  Plot horizontal lines between date ranges iterating through pandas dataframe
Plot horizontal lines between date ranges iterating through pandas dataframe

Time:04-15

I essentially have two different data frames, one for calculating weekly data (df) and a second one (df1) that has the plot values of the stock/crypto. On df, I have created a pandas column 'pivot' ((open high low)/3) using the weekly data to create a set of values containing the weekly pivot values.

Now I want to plot these weekly data (as lines) onto df1 which has the daily data. Therefore the x1 would be the start of the week and x2 be the end of the week. the y values being the pivot value from the df(weekly). enter image description here

  • Related