We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dae1773 commit 7112a90Copy full SHA for 7112a90
code/pages/1_Learning trajectory.py
@@ -47,6 +47,7 @@ def app():
47
48
def do_pca(df, name):
49
df = df.dropna(axis=0, how='any')
50
+ df = df[~df.isin([np.nan, np.inf, -np.inf]).any(axis=1)]
51
52
# Standardize the features
53
x = StandardScaler().fit_transform(df.drop(columns=['subject_id', 'session']))
0 commit comments