So I have a little problem. I have a .csv matrix that I want to transform in a numpy array so i found this: np.genfromtxt('/Users/username/Documents/fichieretudebis.csv', delimiter= ';')
The matter is that my .csv matrix contains number and string, and I need both of them to appear in my array ( but I want them to keep their type) I tried to transform the matrix in a str matrix (with dtype=str) but I can't transform the number back in a float type. Does someone know how to do it ? Thx
More explanation :
My .csv file is like thisenter image description here
I need to use this file in order to create a tree ( using sklearn and Random forest algorithms)
This is what I currently wrote enter image description here
( file called ResultatBis and Previsionbis have the same problem ).
I don't know how to create a array that's going to be recognize by sklearn without using the numpylibrary but I need my matrix to stay exactly the same.
Tell me if that's enough explanation and thx for your future help !