Skip to content

Instantly share code, notes, and snippets.

@Dviejopomata
Last active April 9, 2019 17:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dviejopomata/0f884d623e86a3d7445fdc0404cb4ba8 to your computer and use it in GitHub Desktop.
Save Dviejopomata/0f884d623e86a3d7445fdc0404cb4ba8 to your computer and use it in GitHub Desktop.
#%%
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