text_plain_output_1.png image_output_1.png
import matplotlib.pyplot as plt # pyplot plotting tool

import pandas as pd # data processing

import seaborn as sns # seaborn plotting tool

winedf = pd.read_csv('/kaggle/input/red-wine-quality-cortez-et-al-2009/winequality-red.csv')

winedf.quality.value_counts()

corr = winedf.corr()

X = winedf.iloc[:, :-1]
y = winedf['quality']
print(X.shape)
print(y.shape)