DEV Community

Discussion on: Regression from scratch  -  Wine quality prediction

apoorvadave profile image
Apoorva Dave Author

I see you have value for 'quality' column in the dataset but it is not being read properly. As you can see in the output row 2 and 3 are showing .... but values are present in the actual dataset. Can you try printing df['quality'] and see are there are blank values for it?

Thread Thread
bishtgovind1988 profile image
Govind Bisht

It is reading all the columns as one column. You need to pass the separator while reading the CSV file.

ex:
df = pd.read_csv('winequality-red.csv', sep=";")