Skip to content

Commit

Permalink
Set numeric_only to True for compatability with newer versions
Browse files Browse the repository at this point in the history
  • Loading branch information
foarsitter committed Dec 19, 2023
1 parent 6016a6c commit 9b2e9a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decide/results/nashbargainingsolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def write_summary_result(conn, model_run_ids, output_directory, ai_type="before"
)

try:
table = pd.pivot_table(df, index=["round"], columns=["p"], values=["mds"])
table = pd.pivot_table(df, index=["round"], columns=["p"], values=["mds"], numeric_only=True)
plt = table.plot()

plt.set_title(name)
Expand Down

0 comments on commit 9b2e9a6

Please sign in to comment.