Skip to content
murmot

Results for “python numpy array example program site:mail.python.org file”

  • mail.python.org

    [Tutor] Importing file data into Python arrays

    May 27, 2002 · Previous message: [Tutor] Importing file data into Python arrays Next message: [Tutor] Importing file data into Python arrays Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

  • mail.python.org

    [Tutor] comparing two numpy arrays

    If I've two numpy arrays, is there a non-looping way of finding common > values. (the example below has identical shapes for the > arrays but this > may not be the case in my scenario) > >.Maybe you might be able to directly convert the numpy arrays to sets?

  • mail.python.org

    [Numpy-discussion] NEP: array API standard adoption (NEP 47)

    The array object ~~~~~~~~~~~~~~~~ Regarding the array object implementation, we plan to start with a regular Python class that wraps a ``numpy.ndarray`` instance. Attributes and methods can forward to that wrapped instance, applying input validation and implementing changed behaviour as needed.

  • mail.python.org

    [Tutor] reading large text file as numpy array

    I have a large text file with more than 50k lines and about 784 floats in > each line. > > How can I read the whole file as a single numpy array? Have you tried numpy.loadtxt()?

  • mail.python.org

    [Matrix-SIG] Reading binary data from file into NumPy arrays ...

    Jun 18, 1998 · Hello all, I needed a relatively low-level method to load arbitrary binary data files into NumPy arrays, so I wrote C-extension code to do it after learning a little about the NumPy API through the source code. I've called the module numpyio and it allows reading and writing aribrary data-types to an open file stream.

  • mail.python.org

    [C++-sig] numpy.ndarray did not match PyArrayObject *?

    Any suggestion? You need to register an lvalue converter from Python numpy.ndarray to PyArrayObject.replace the indicated with the name of NumPy's python type object for ndarray. -- Dave Abrahams Boost Consulting www.boost-consulting.com.

  • mail.python.org

    Mailman 3 Search results for "closing csv file in numpy ...

    I ran the tests using the `runtests.py` script: *seed+1000, using 'python runtests.py -n' in the source directory:* 236 failed, 12881 passed, 1248 skipped, 585 deselected, 84 xfailed, 7 xpassed Most of the failures are in scipy.stats: *seed+1000, using 'python runtests.py -n -s stats' in the source directory:* 203 failed, 1034 passed, 4 skipped ...

  • mail.python.org

    [PYTHON MATRIX-SIG] Array -> String: array length

    May 8, 1997 · Jean-Bernard ADDOR writes: > > I am very happy to hear about the length of the numpy arrays other users > uses because I uses these day pow (2,22) = len (array) = 4194304 and I > seriously ask me questions about python memory managment. My program uses > hundreds Megs of RAM.