>>> import numpy as np
>>> from scipy.sparse import csr_matrix
>>> row = np.array([0, 0, 1, 2, 2, 2])
>>> col = np.array([0, 2, 2, 0, 1, 2])
>>> data = np.array([1, 2, 5, 3, 1, 4])
>>> X=csr_matrix((data, (row, col)), shape=(3, 3))
>>> X.toarray()
array([[1, 0, 2],
[0, 0, 5],
[3, 1, 4]])
>>> X.argmin(axis=0)
matrix([[1, 0, 0]])
>>> X.argmin(axis=1)
matrix([[1],
[0],
[1]])