Skip to content

Commit

Permalink
Replace append with concat
Browse files Browse the repository at this point in the history
  • Loading branch information
kellynm committed Oct 3, 2023
1 parent 49376ab commit dd57bbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/notebooks/validation_plots.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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))"
]
},
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit dd57bbe

Please sign in to comment.