Skip to content

Commit

Permalink
reverse column names so they align with calculation setup and rest of…
Browse files Browse the repository at this point in the history
… results
  • Loading branch information
marc-vdm committed Dec 2, 2024
1 parent 6cc980f commit 948df24
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions activity_browser/ui/figures.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ def plot(self, df: pd.DataFrame, unit: str = None):
"""Plot a horizontal stacked bar chart of contributions,
add 'total' marker if both positive and negative results are present."""
dfp = df.copy()
dfp = dfp.iloc[:, ::-1] # reverse column names so they align with calculation setup and rest of results

dfp.index = dfp["index"]
dfp.drop(
dfp.select_dtypes(["object"]), axis=1, inplace=True
Expand Down

0 comments on commit 948df24

Please sign in to comment.