Type for y_true was set to pd.DataFrame, while a few lines later in sam_quantile_plot, y_true.name is checked. This caused the function to break, since pd.Dataframe has no attribute name, but pd.Series does. Since y_true was supposed to be a DataFrame with 1 column, this change is backwards compatible when y_titleis provided.
This makes sense, though we could also use the squeeze function to optionally squeeze a dataframe into a series. But that't maybe a task for later, for now this will suffice
Type for y_true was set to pd.DataFrame, while a few lines later in
sam_quantile_plot
,y_true.name
is checked. This caused the function to break, since pd.Dataframe has no attribute name, but pd.Series does. Since y_true was supposed to be a DataFrame with 1 column, this change is backwards compatible wheny_title
is provided.