Spaces:
Sleeping
Sleeping
Commit
·
6e2e202
1
Parent(s):
1b166bd
Update code/standard.py
Browse files- code/standard.py +3 -2
code/standard.py
CHANGED
@@ -1,3 +1,5 @@
|
|
|
|
|
|
1 |
def standardize(df, get_columns):
|
2 |
cols_to_change = ['sasa', 'domaindistance3D', 'disulfide', 'intMet', 'intramembrane',
|
3 |
'naturalVariant', 'dnaBinding', 'activeSite', 'nucleotideBinding',
|
@@ -12,10 +14,9 @@ def standardize(df, get_columns):
|
|
12 |
|
13 |
return df
|
14 |
|
|
|
15 |
def finalTouch(data):
|
16 |
-
st.write('I am inside')
|
17 |
for i in data.index:
|
18 |
-
st.write(i)
|
19 |
if '*' in data.at[i, 'sasa']:
|
20 |
data.at[i, 'sasa'] = data.at[i, 'sasa'].split('*')[0]
|
21 |
data.sasa = data.sasa.replace({'N/A': np.NaN})
|
|
|
1 |
+
import numpy as np
|
2 |
+
|
3 |
def standardize(df, get_columns):
|
4 |
cols_to_change = ['sasa', 'domaindistance3D', 'disulfide', 'intMet', 'intramembrane',
|
5 |
'naturalVariant', 'dnaBinding', 'activeSite', 'nucleotideBinding',
|
|
|
14 |
|
15 |
return df
|
16 |
|
17 |
+
|
18 |
def finalTouch(data):
|
|
|
19 |
for i in data.index:
|
|
|
20 |
if '*' in data.at[i, 'sasa']:
|
21 |
data.at[i, 'sasa'] = data.at[i, 'sasa'].split('*')[0]
|
22 |
data.sasa = data.sasa.replace({'N/A': np.NaN})
|