Skip to content

Commit

Permalink
Revert "another test"
Browse files Browse the repository at this point in the history
This reverts commit 5efaf8f.
  • Loading branch information
EelcoHoogendoorn committed May 13, 2016
1 parent 5efaf8f commit 6d65d6c
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions numpy_indexed/tests/test_indexed.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,13 +335,3 @@ def test_weighted_mean():
weights = [0, 0, 1, 1, 1, 1, 8, 1]
g, mean_w = group_by(keys).mean(values, weights=np.array(weights)*3)
npt.assert_allclose(mean_w, [1, 4.3, 2, 5.67, 8])

def test_coo():
import scipy.sparse
dense = np.random.randint(0, 10, (4, 4))
coo = scipy.sparse.coo_matrix(dense)
print(dense)
row, argmax = group_by(coo.row).argmax(coo.data)

col, argmax = group_by(coo.col).argmax(coo.data)
row = coo.row[argmax]

0 comments on commit 6d65d6c

Please sign in to comment.