Skip to content

Commit

Permalink
fix: pandas xs does not allow list anymore, should be tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
Jhsmit committed Oct 27, 2023
1 parent b055f04 commit 5a010de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyhdx/web/controllers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1557,7 +1557,7 @@ def add_drfu_comparison(self):
names = ["comparison_name", "comparison_state", "exposure", "quantity"]

# Take rfu entries from df, to calculate drfu
reference_rfu = rfu_df.xs(key=[self.reference_state, "rfu"], level=[0, 2], axis=1)
reference_rfu = rfu_df.xs(key=(self.reference_state, "rfu"), level=[0, 2], axis=1)
test_rfu = rfu_df.drop(self.reference_state, axis=1, level=0).xs("rfu", level=2, axis=1)

drfu = test_rfu.sub(reference_rfu, level="exposure").dropna(how="all", axis=1)
Expand Down

0 comments on commit 5a010de

Please sign in to comment.