-
-
Save Dviejopomata/0f884d623e86a3d7445fdc0404cb4ba8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#%% | |
import pandas as pd | |
import numpy as np | |
from matplotlib import pyplot as plt | |
from scipy.cluster.hierarchy import dendrogram, linkage | |
from sklearn import datasets | |
import seaborn as sns | |
%matplotlib inline | |
sns.set(style="darkgrid") | |
#%% | |
df = pd.read_csv("./pec1/small.csv") | |
#%% | |
features = [i for i in df.columns if i not in ["CLASS"]] | |
#%% | |
new_df = (df[features] - df[features].mean()) / df[features].std(ddof=0) | |
#%% | |
new_df | |
#%% | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment