Skip to content

Commit

Permalink
slight fix in all
Browse files Browse the repository at this point in the history
  • Loading branch information
linozen committed Jul 18, 2021
1 parent db39d8b commit a4084ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions explorer/all.py
Original file line number Diff line number Diff line change
Expand Up @@ -680,8 +680,8 @@ def get_merged_ms_df():
# Here, I change the datatype to boolean for all the multiple choice answers
for col in df:
if col.startswith("foi5"):
df[col] = df[col].replace(np.nan, "False")
df[col] = df[col].replace("Y", "True")
df[col] = df[col].replace(np.nan, False)
df[col] = df[col].replace("Y", True)
df[col] = df[col].astype("bool")

###################################################################################
Expand Down

0 comments on commit a4084ce

Please sign in to comment.