Commit
ยท
6a8ddb8
1
Parent(s):
ba3e45c
Update analysis/preprocessing.py
Browse files
analysis/preprocessing.py
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
from utilities.template_helpers import upload_data
|
| 3 |
-
from types import NoneType
|
| 4 |
import pandas as pd
|
| 5 |
import numpy as np
|
| 6 |
from sklearn.preprocessing import StandardScaler
|
|
@@ -18,7 +17,7 @@ def render():
|
|
| 18 |
df = None
|
| 19 |
with col1.container():
|
| 20 |
df = upload_data()
|
| 21 |
-
if
|
| 22 |
return
|
| 23 |
if df.shape == (0,0):
|
| 24 |
return
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
from utilities.template_helpers import upload_data
|
|
|
|
| 3 |
import pandas as pd
|
| 4 |
import numpy as np
|
| 5 |
from sklearn.preprocessing import StandardScaler
|
|
|
|
| 17 |
df = None
|
| 18 |
with col1.container():
|
| 19 |
df = upload_data()
|
| 20 |
+
if df is None:
|
| 21 |
return
|
| 22 |
if df.shape == (0,0):
|
| 23 |
return
|