Wine Quality Questions
Wine Quality Questions
Down load the dataset winequality-red.csv file( each column is separated by a semicolon
(;)) from the UCI Machine Learning Repository
1. Convert it to numPy array, name it as wines (leave the first row of the list) and specify
the data type of array as float.
2. Identify the shape of the array.
3. Display the element at row 3 and column 4.
4. Display the first three items from the fourth column.
5. Display third column from each row.
6. Display fourth row.
7. Assign value 10 to 2nd row and 6th column element.
8. Take the 10th column from wines array and name that slice as slice_new and assign value
666 to all elements of slice_new.
9. Display wines array.
10. Find the data type of wines array and Change the data type to int.
11. Add 10 points to each quality score.
12. Find the sum of all the elements in an array
13. Find the sum of all the values in every column.
14. Find the sum of all the values in every row.
15. Add the quality column to itself.
16. Multiply alcohol by quality.
17. Display which wines have a quality rating higher than 5.
18. Check if any wines have a quality rating equal to 10.
19. Select rows in wines where the quality is over 7
20. Display wines with alcohol greater than 10 and quality greater than 7.
21. Change the shape of wines array.