Skip to content

Commit 9ca50f1

Browse files
committed
Fix "id" ending up in contributions
1 parent f069791 commit 9ca50f1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • activity_browser/layouts/pages/lca_results

activity_browser/layouts/pages/lca_results/plots.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,8 @@ def plot(self, df: pd.DataFrame, unit: str = None):
200200
) # get rid of all non-numeric columns (metadata)
201201
if "Score" in dfp.index:
202202
dfp.drop("Score", inplace=True)
203+
if "id" in dfp:
204+
dfp.drop(columns=["id"], inplace=True)
203205
# drop rows if all values are 0 except for "Rest (+)" and "Rest (-)"
204206
rows_to_drop = dfp.index[(dfp == 0).all(axis=1) & ~dfp.index.isin(["Rest (+)", "Rest (-)"])]
205207
# Drop those rows

0 commit comments

Comments
 (0)