Skip to content

Commit 949307c

Browse files
author
Christian Lorentzen
committed
MNT pandas 1.0.0 deprectation
See pandas-dev/pandas#23566
1 parent 70000ea commit 949307c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/linear_model/plot_tweedie_regression_insurance_claims.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def plot_obs_pred(df, feature, weight, observed, predicted, y_label=None,
115115
df_["observed"] = df[observed] * df[weight]
116116
df_["predicted"] = predicted * df[weight]
117117
df_ = (
118-
df_.groupby([feature])[weight, "observed", "predicted"]
118+
df_.groupby([feature])[[weight, "observed", "predicted"]]
119119
.sum()
120120
.assign(observed=lambda x: x["observed"] / x[weight])
121121
.assign(predicted=lambda x: x["predicted"] / x[weight])

0 commit comments

Comments
 (0)