diff --git a/openbb_terminal/fixedincome/fred_model.py b/openbb_terminal/fixedincome/fred_model.py index fe33f2804626..460137f69b32 100644 --- a/openbb_terminal/fixedincome/fred_model.py +++ b/openbb_terminal/fixedincome/fred_model.py @@ -653,7 +653,7 @@ def get_projection(long_run: bool = False): data_series_df = pd.DataFrame.from_dict(data_series).dropna() data_series_df.index = pd.to_datetime(data_series_df.index).date - + data_series_df.index.name = "Date" return data_series_df @@ -731,6 +731,7 @@ def get_ecb( df = pd.DataFrame.from_dict(series_dictionary) df.index = pd.to_datetime(df.index).date + df.index.name = "Date" return df @@ -868,6 +869,7 @@ def get_icebofa( df = pd.DataFrame.from_dict(series_dictionary) df.index = pd.to_datetime(df.index).date + df.index.name = "Date" return df @@ -898,6 +900,7 @@ def get_moody( df = pd.DataFrame(series, columns=[f"{data_type}_{spread if spread else 'index'}"]) df.index = pd.to_datetime(df.index).date + df.index.name = "Date" return df @@ -947,6 +950,7 @@ def get_cp( df = pd.DataFrame.from_dict(series_dictionary) df.index = pd.to_datetime(df.index).date + df.index.name = "Date" return df @@ -996,6 +1000,7 @@ def get_spot( df = pd.DataFrame.from_dict(series_dictionary) df.index = pd.to_datetime(df.index).date + df.index.name = "Date" return df diff --git a/openbb_terminal/fixedincome/fred_view.py b/openbb_terminal/fixedincome/fred_view.py index 71fbdf7e210e..97b279c01281 100644 --- a/openbb_terminal/fixedincome/fred_view.py +++ b/openbb_terminal/fixedincome/fred_view.py @@ -1254,7 +1254,11 @@ def plot_icebofa( for column in df.columns: fig.add_scatter( - x=df.index, y=df[column].values, name=column, showlegend=len(df.columns) > 1 + x=df.index, + y=df[column].values, + name=column, + showlegend=True, + connectgaps=True, ) if raw: