Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 counting the occurence of a specified number in a numpy-matrix
#1
Hi!
There is a numpy-matrix with a couple column and about 100000 row. For now, only the last element of each row is important.
I wish to count, that how many row has the number 1 as the last element. Then how many row has the number 2 as the last element, and so on (until the number 1000). It would be also good, if i could count, how many row has greater then 1000 as the last element.

Is there any solution for this problem (without to write a code with tausends of lines)?

Or is there any way, to copy past the values of a matrix from Spyder IDE to Libreoffice Calc?
Quote
#2
Oké, it seems, i have a solution. The newer versions of the Spyder IDE support the copy paste.
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  AttributeError: module 'numpy' has no attribute 'array aapurdel 7 484 May-29-2019, 02:48 AM
Last Post: heiner55
  Array in numpy Truman 5 2,903 May-26-2019, 10:14 AM
Last Post: snippsat
  [split] Array in numpy aapurdel 1 92 May-25-2019, 08:05 PM
Last Post: buran
  [numpy]add a value to an array elmismo999 1 126 May-23-2019, 04:15 PM
Last Post: michalmonday
  comparing each rows of two matrix PhysChem 10 781 May-17-2019, 06:50 AM
Last Post: Gribouillis
  Inverse of singular matrix Divanova94 4 250 May-11-2019, 02:40 AM
Last Post: scidam
  matrix by vector mcgrim 8 217 May-02-2019, 10:39 AM
Last Post: ichabod801
  Extract of matrix subpart using a deep copy paul18fr 2 125 May-02-2019, 06:49 AM
Last Post: paul18fr
  Help in adding confusion matrix Aashish 5 371 Apr-15-2019, 11:45 PM
Last Post: scidam
  "erlarge" a numpy-matrix to numpy-array PhysChem 2 179 Apr-09-2019, 04:54 PM
Last Post: PhysChem

Forum Jump:


Users browsing this thread: 1 Guest(s)