This commit is contained in:
Pritimay Sarkar
2023-09-21 14:09:02 +05:30
parent 237043816f
commit 46367353e8
6 changed files with 87 additions and 6 deletions

14
scripts/describe1.py Normal file
View File

@@ -0,0 +1,14 @@
import pandas as pd
import os
import numpy as np
curdir = os.getcwd()
path_delim = '/'
df1 = pd.read_excel(curdir + path_delim + "data/July_Sept4.xlsx", sheet_name="op")
df1.loc[df1['Test Result'] == 'Sickle cell Trait (HbAS)', 'Test Result'] = 'Sickle Cell Trait (HbAS)'
print(df1.groupby(['Test Result']).describe())
writer = pd.ExcelWriter(curdir + path_delim + "data/July_Sept5.xlsx", engine = 'openpyxl')
df1.to_excel(writer, sheet_name = 'op', index=False)
writer.close()