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
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?
Oké, it seems, i have a solution. The newer versions of the Spyder IDE support the copy paste.

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Error installing numpy srm 3 182 Jul-08-2019, 06:26 PM
Last Post: srm
  AttributeError: module 'numpy' has no attribute 'array aapurdel 7 914 May-29-2019, 02:48 AM
Last Post: heiner55
  Array in numpy Truman 5 3,255 May-26-2019, 10:14 AM
Last Post: snippsat
  [split] Array in numpy aapurdel 1 156 May-25-2019, 08:05 PM
Last Post: buran
  [numpy]add a value to an array elmismo999 1 194 May-23-2019, 04:15 PM
Last Post: michalmonday
  comparing each rows of two matrix PhysChem 10 930 May-17-2019, 06:50 AM
Last Post: Gribouillis
  Inverse of singular matrix Divanova94 4 660 May-11-2019, 02:40 AM
Last Post: scidam
  matrix by vector mcgrim 8 294 May-02-2019, 10:39 AM
Last Post: ichabod801
  Extract of matrix subpart using a deep copy paul18fr 2 185 May-02-2019, 06:49 AM
Last Post: paul18fr
  Help in adding confusion matrix Aashish 5 500 Apr-15-2019, 11:45 PM
Last Post: scidam

Forum Jump:

Users browsing this thread: 1 Guest(s)