Skip to content

Commit b0a1e69

Browse files
updated check_tolerance() to replace deprecated df.append() with pd.concat()
1 parent 6831af7 commit b0a1e69

1 file changed

Lines changed: 11 additions & 12 deletions

File tree

src/codonpython/tolerance.py

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -122,18 +122,17 @@ def check_tolerance(
122122
_, yhat_l, yhat_u = wls_prediction_std(model, t_predict, alpha=alpha)
123123

124124
# Store model results in master frame
125-
results = results.append(
126-
pd.DataFrame(
127-
{
128-
"t": t_orig,
129-
"yhat_u": yhat_u,
130-
"yobs": y_predict,
131-
"yhat": yhat,
132-
"yhat_l": yhat_l,
133-
"polynomial": degree,
134-
}
135-
),
136-
ignore_index=True,
125+
degree_results = pd.DataFrame(
126+
{
127+
"t": t_orig,
128+
"yhat_u": yhat_u,
129+
"yobs": y_predict,
130+
"yhat": yhat,
131+
"yhat_l": yhat_l,
132+
"polynomial": degree,
133+
}
137134
)
138135

136+
results = pd.concat([results, degree_results], ignore_index=True)
137+
139138
return results

0 commit comments

Comments
 (0)