combine5
This commit is contained in:
14
scripts/describe1.py
Normal file
14
scripts/describe1.py
Normal 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()
|
||||
Reference in New Issue
Block a user