From dd57bbe78f127c4b02001603bd037c1c17adba1a Mon Sep 17 00:00:00 2001 From: Kellyn Montgomery Date: Tue, 3 Oct 2023 11:57:42 -0400 Subject: [PATCH] Replace append with concat --- examples/notebooks/validation_plots.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/notebooks/validation_plots.ipynb b/examples/notebooks/validation_plots.ipynb index 2278bf2e..c99542fd 100644 --- a/examples/notebooks/validation_plots.ipynb +++ b/examples/notebooks/validation_plots.ipynb @@ -187,7 +187,7 @@ "outputs": [], "source": [ "# Combine dataframes from both tests to view contamination rates\n", - "contaminate_validation_df = contaminate_validation_df_1.append(contaminate_validation_df_2)\n", + "contaminate_validation_df = pd.concat(contaminate_validation_df_1, contaminate_validation_df_2)\n", "contaminate_validation_df.index = range(len(contaminate_validation_df))" ] }, @@ -220,7 +220,7 @@ "beta_expected = pd.Series(0.007)\n", "beta_expected = beta_expected.repeat(repeats=len(contaminate_validation_df_2))\n", "\n", - "expected_rates = fixed_expected.append(beta_expected)\n", + "expected_rates = pd.concat(fixed_expected, beta_expected)\n", "\n", "expected_rates.index = range(len(expected_rates))\n", "simulated_rates = contaminate_validation_df[\"true_contamination_rate\"]\n",