Skip to content

Instantly share code, notes, and snippets.

@dipanjanS
Created January 10, 2018 16:56
Show Gist options
  • Save dipanjanS/62f0476104580ec4dc7c696d46045542 to your computer and use it in GitHub Desktop.
Save dipanjanS/62f0476104580ec4dc7c696d46045542 to your computer and use it in GitHub Desktop.
subset_attributes = ['residual sugar', 'total sulfur dioxide', 'sulphates',
'alcohol', 'volatile acidity', 'quality']
rs = round(red_wine[subset_attributes].describe(),2)
ws = round(white_wine[subset_attributes].describe(),2)
pd.concat([rs, ws], axis=1, keys=['Red Wine Statistics', 'White Wine Statistics'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment