# 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: **155 times**

Last updated: **Dec 13 '15**

Cannot use pip because pip is configured with locations that require TLS/SSL

Ubuntu 12.04: Ipython Permission Denied

how do I remove this sage installation problem

What to do for using the IPython notebook?

is it possible to run a sage in ipython notebook?

How to get the same environment in "sage -ipython notebook" as in "sage"?

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.