Skip to content
murmot

Results for “python numpy array example problem site:mail.python.org connection”

  • mail.python.org

    [Numpy-discussion] ValueError: objects are not aligned

    Next message (by thread): [Numpy-discussion] ValueError: objects are not aligned.examples are in docstring for np.cov >. as for "stacking rf1 rf1 into a single array first" how would I do this? >>> np.column_stack([np.arange(3)[:,None], np.arange(3)[:,None]]) array([[0, 0]

  • mail.python.org

    [AstroPy] Moving Ahead with Raw Image Conversion

    You can get a numpy array of either integer or floats with the numpy.array() function. Here's a short example (sort-of based on your "make_image" function), using integersNow, the problem is that what I've done is to create a Python array of *integers*, then converted it to numpy form.

  • 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 convert the arrays to lists or tuples then to sets?