Last active
May 16, 2019 08:35
-
-
Save NataliiaRastoropova/d7785a50e91956803191e44e061b8361 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
# Create pivot_table | |
colum_names = ['fixed acidity', 'volatile acidity', 'citric acid', 'residual sugar', 'chlorides', 'free sulfur dioxide', 'total sulfur dioxide', 'density', 'pH', 'sulphates', 'alcohol'] | |
df_pivot_table = df.pivot_table(colum_names, ['quality'], aggfunc='median') | |
print(df_pivot_table) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment