Basicaly i am trying to do the same thing as in this question but in python.
What i tried so far:
I read the file and save it in a dataframe. Then i use this code A = np.array(df)
to create a numpy array. My problem is that when i try to convert it to a sparse using the code s = sparse.csr_matrix(A)
i get this error TypeError: Cannot cast array data from dtype('O') to dtype('bool') according to the rule 'safe'