charagu-eric commited on
Commit
3ba1f30
·
1 Parent(s): 30bf09c
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -146,11 +146,10 @@ def main():
146
  st.header("Energy Flow Composition")
147
  fig, ax = plt.subplots(figsize=(10, 6))
148
  sns.barplot(
149
- df.melt(
150
- id_vars=["Scenario"],
151
- value_vars=["solar_contribution", "grid_dependency"],
152
- x="Scenario",
153
  y="value",
 
154
  hue="variable",
155
  ax=ax,
156
  )
 
146
  st.header("Energy Flow Composition")
147
  fig, ax = plt.subplots(figsize=(10, 6))
148
  sns.barplot(
149
+ data=data,
150
+ x="Scenario",
 
 
151
  y="value",
152
+
153
  hue="variable",
154
  ax=ax,
155
  )