I'm trying to create a line plot in Seaborn, but I'm having an issue with a gap in the plot. I have two columns and the second column should continue after the first has finished. However the gap is't filling, as I assume it's trying to extrapolate the missing dates in the dataframe.
I'm trying to close the gap between these time-series, such that march continues after September. This is wat my dataframe looks like between the gap.
+------------+-------+-------+
| Date | Val1 | Val2 |
+------------+-------+-------+
| 2020-09-24 | 199.0 | NaN |
| 2020-09-25 | 200.0 | NaN |
| 2021-01-03 | NaN | 200.0 |
| 2021-01-04 | NaN | 201.0 |
+------------+-------+-------+
The code is rather simple.
sns.lineplot(x='Date', y="vals", hue=vals, data=df, dashes=[(),(3,1)])