Skip to content

Instantly share code, notes, and snippets.

@davestroud
Created June 2, 2018 20:03
Show Gist options
  • Save davestroud/8d6da3978fa6cd9e49a49469bc409869 to your computer and use it in GitHub Desktop.
Save davestroud/8d6da3978fa6cd9e49a49469bc409869 to your computer and use it in GitHub Desktop.
PCA
Display the source blob
Display the rendered blob
Raw
import pandas as pd
df_wine = pd.read_csv('https://archive.ics.uci.edu/ml/'
'machine-learning-databases/wine/wine.data',
header=None)
df_wine.columns = ['Class label', 'Alcohol', 'Malic acid', 'Ash',
'Alcalinity of ash', 'Magnesium', 'Total phenols',
'Flavanoids', 'Nonflavanoid phenols', 'Proanthocyanins',
'Color intensity', 'Hue',
'OD280/OD315 of diluted wines', 'Proline']
df_wine.head()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment