From 61413d0d2573c18cf847c927fc1de9e9a815910e Mon Sep 17 00:00:00 2001 From: tiqfds <87251702+tiqfds@users.noreply.github.com> Date: Sat, 3 Feb 2024 02:01:36 -0800 Subject: [PATCH] replacing "append" with "pd.concat" performances.append(performances_model) is outdated, but can be replaced with pd.concat([performances, performances_model], ignore_index= False) --- Chapter_3_GettingStarted/BaselineModeling.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Chapter_3_GettingStarted/BaselineModeling.ipynb b/Chapter_3_GettingStarted/BaselineModeling.ipynb index 78fae71..9aba5ca 100644 --- a/Chapter_3_GettingStarted/BaselineModeling.ipynb +++ b/Chapter_3_GettingStarted/BaselineModeling.ipynb @@ -1260,7 +1260,7 @@ " prediction_feature='predictions', top_k_list=top_k_list)\n", " performances_model.index=[classifier_name]\n", " \n", - " performances=performances.append(performances_model)\n", + " performances=pd.concat([performances, performances_model], ignore_index=False)\n", " \n", " return performances" ]