Skip to content

Commit

Permalink
Create preprocess.py
Browse files Browse the repository at this point in the history
  • Loading branch information
perara authored Feb 9, 2023
1 parent 023417f commit 0538699
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Coma/preprocess.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
def preprocess(df):
df.replace({
"absent": 0,
"present": 1
}, inplace=True)
return df.astype(int)

0 comments on commit 0538699

Please sign in to comment.