Skip to content

Commit

Permalink
Hotfix2 FA
Browse files Browse the repository at this point in the history
  • Loading branch information
jvivian committed Jun 14, 2024
1 parent f099d00 commit 0d285dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions covid19_drdfm/streamlit/pages/1_Factor_Analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ def get_factors(res_dir):
# new = normalize(new[new.State == state])

# Normalize factors and add to new dataframe
# if st.sidebar.checkbox("Invert Factor"):
# df[factor] = df[factor] * -1
# df = normalize(df[df.State == state]).reset_index(drop=True)
if st.sidebar.checkbox("Invert Factor"):
df[factor] = df[factor] * -1
df = normalize(df[df.State == state]) # .reset_index(drop=True)

df = df[df["State"] == state]
df = df[[factor]].join(new, on="Time")
Expand Down

0 comments on commit 0d285dc

Please sign in to comment.