Jan-24-2021, 05:18 AM
Hello,
I am trying to reconstruct time series graphs from FRED through Python.
I am having trouble however finding a simple way to add shaded bars denoting start and end dates for recessions onto a basic time series plot.
I have loaded data for recession dates from FRED that looks like:
Date Recession
10/1/67 0
1/1/68 0
4/1/68 0
7/1/68 0
10/1/68 0
1/1/69 0
4/1/69 1
7/1/69 1
10/1/69 1
1/1/70 1
4/1/70 1
7/1/70 1
10/1/70 1
I am trying to reconstruct time series graphs from FRED through Python.
I am having trouble however finding a simple way to add shaded bars denoting start and end dates for recessions onto a basic time series plot.
I have loaded data for recession dates from FRED that looks like:
Date Recession
10/1/67 0
1/1/68 0
4/1/68 0
7/1/68 0
10/1/68 0
1/1/69 0
4/1/69 1
7/1/69 1
10/1/69 1
1/1/70 1
4/1/70 1
7/1/70 1
10/1/70 1