Skip to content

Commit

Permalink
Subset state first you dummy
Browse files Browse the repository at this point in the history
  • Loading branch information
jvivian committed Feb 6, 2024
1 parent c17c9b9 commit bd18193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion covid19_drdfm/streamlit/pages/Factor_Analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

# Normalize factors and add to new dataframe
df["Time"] = new["Time"]
new[factor] = normalize(df)[factor]
new[factor] = normalize(df[df.State == state])[factor]

# Melt into format for plotting
melted_df = new.drop(columns="State").melt(id_vars=["Time"], value_name="value")
Expand Down

0 comments on commit bd18193

Please sign in to comment.