Hello. I have been attempting to do some ml with python and I have been struggling a lot. Actually most of the struggle is having to convert the data into numpy arrays. Virtually every source includes importing data from excels and I have no idea how to do this otherwise. I want to predict sales data using random forest regression algorithm with scikit learn. My data is structured like this:
and the deeper question is how should I go about doing ml? part of the problem is I am not really super interested in ml and I just have to use it in my projects so while I don't wanna delve into it maybe I just have to? I'm so lost please help me find a direction.
Code:
{'2022': {1: [[0, 0, 8, 10, 7, 6, 8, 0, 0, 5, 16, 12, 8, 7, 1, 0, 15, 7, 6, 9, 13, 0, 0, 4, 6, 18, 11, 16, 0, 0, 5], [5, 13, 8, 9, 0, 0, 12, 9, 17, 20, 15, 0, 0, 11, 17, 14, 16, 4, 1, 0, 25, 6, 17, 15, 10, 2, 0, 13], [11, 22, 14, 9, 1, 0, 13, 23, 14, 13, 7, 2, 0, 12, 11, 8, 1, 5, 0, 0, 4, 4, 4, 3, 9, 0, 0, 4, 19, 11, 4], [14, 2, 0, 6, 16, 4, 11, 16, 0, 13, 8, 9, 4, 9, 5, 2, 0, 11, 12, 4, 5, 5, 0, 0, 11, 6, 12, 12, 10, 3], [0, 0, 0, 0, 12, 8, 1, 0, 12, 13, 18, 10, 7, 0, 0, 24, 9, 12, 0, 10, 2, 0, 14, 14, 14, 4, 5, 0, 0, 7, 5], [10, 4, 10, 0, 0, 8, 7, 5, 1, 6, 0, 0, 16, 3, 16, 12, 9, 3, 0, 8, 6, 2, 3, 6, 1, 0, 5, 7, 10, 3], [12, 2, 0, 3, 7, 7, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 14, 1, 0, 0, 8, 0, 0, 6], [7, 2, 3, 1, 7, 0, 0, 7, 5, 0, 9, 4, 0, 0, 1, 7, 8, 6, 3, 0, 0, 4, 10, 5, 4, 5, 2, 0, 5, 0, 7], [12, 9, 4, 0, 16, 8, 7, 5, 16, 1, 0, 2, 12, 11, 11, 7, 1, 0, 5, 9, 20, 11, 14, 1, 0, 14, 9, 6, 9, 15], [1, 0, 8, 11, 14, 12, 13, 1, 0, 13, 12, 4, 15, 7, 1, 0, 10, 7, 8, 6, 8, 0, 0, 9, 12, 2, 12, 1, 0, 0, 15], [6, 12, 6, 7, 0, 0, 8, 15, 13, 6, 1, 0, 0, 8, 8, 3, 9, 15, 0, 0, 16, 7, 11, 4, 6, 0, 0, 11, 10, 6], [10, 21, 10, 0, 13, 6, 13, 7, 12, 0, 0, 12, 16, 13, 4, 12, 1, 0, 13, 4, 10, 13, 21, 2, 0, 16, 10, 12, 13, 4]]}}