# How can i counter frequent array in numpy?

import numpy as np X=np.array[[1,2], [3,4], [1,2], [4,1]] "i want to counter repetitive [1,2]"

How can i counter frequent array in numpy?

import numpy as np X=np.array[[1,2], [3,4], [1,2], [4,1]] "i want to counter repetitive [1,2]"

add a comment

0

It is somehow a duplicate of this question, you can change the bi-dimensional numpy array `X`

into a list of lists as follows:

```
sage: Y = [list(x) for x in X]
sage: Y
[[1, 2], [3, 4], [1, 2], [4, 1]]
```

Asked: **
2015-12-12 09:25:28 -0500
**

Seen: **165 times**

Last updated: **Dec 13 '15**

/sage: line 334: path/sage-ipython: Permission denied

Install ipython notebook on sage 6.2

is it possible to run a ipython notebook in sage?

function created in python under sage

Can't get Sage to build: Clean install Ubuntu 12.04, iPython Error

Sage uses system-wide python...

IPython.display.clear_output() functionality for SageMathCell.

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.