Skip to content
murmot

Results for “python numpy array example problem ... java 2 1 site:mail.python.org not working”

  • mail.python.org

    [Tutor] Rotating an array? - Python

    Nov 19, 2006 · One problem I'm encountering here is Python's lack of > explicit arrays. > > Take a square array (n x n) of Java ints, only containing 0's and 1's: > int [] [] twisted = [ [0, 1, 0, 0], [0, 1, 0, 0], [1, 0, 0, 0], [0, 0, 0, > 1]]; > // 0 1 0 0 > // 0 1 0 0 > // 1 0 0 0 > // 0 0 0 1 > > The function I had turns the array 90 degrees ...

  • mail.python.org

    [Numpy-discussion] median object

    so that in a function, I can call x.median() and allow x to be a masked array or a numpy array. Using the ma.median version by default is something of a workaround, because it appears to work on both numpy arrays and masked arrays.

  • mail.python.org

    [Tutor] while Loop - Python

    Jul 18, 2007 · Darren Williams D3IBZ at hotmail.com Wed Jul 18 21:33:11 CEST 2007 Previous message: [Tutor] while Loop Next message: [Tutor] while Loop Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

  • 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

    The Application cannot locate win32ui.pyd (or Python) (126)

    Aug 4, 2010 · The -w > > > command line option should modify files in place. > > > Thank you Alex for your detailes reply. > > > Before switching to Python 3.1.2 I removed all my Python 2.6 packages > > (python, pywin32, numpy, wxpython). However, the removal was not > > complete since some files could not be removed.

  • mail.python.org

    [Numpy-discussion] accepting NEP 23 - backwards compatibility ...

    Those users rely on NumPy being stable > and the code they write that uses NumPy functionality to keep working. > NumPy is also actively maintained and improved -- and sometimes > improvements > require, or are made much easier by, breaking backwards compatibility. > Finally, there are trade-offs in stability for existing users vs. avoiding ...

  • mail.python.org

    [Numpy-discussion] median object

    so that in a function, I can call > x.median() > and allow x to be a masked array or a numpy array. > > Using the ma.median version by default is something of a workaround, because > it appears to work on both numpy arrays and masked arrays.

  • mail.python.org

    [Tutor] A quicky example of writing a SocketServer ... - Python

    Aug 10, 2002 · The standard library's 'SocketServer' module does have some documentation, but it's quite dense, and doesn't come with a working example. It looks a lot more intimidating than it should be, but it's actually not too scary. Here is a simple "echoing" server that repeats whatever is being sent to it.

  • mail.python.org

    [Tutor] Still having trouble with my game of life ... - Python

    May 25, 2007 · Ken Oliver ksterling at mindspring.com Sat May 26 00:23:54 CEST 2007 Previous message: [Tutor] Still having trouble with my game of life algorithm Next message: [Tutor] file (), open () Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]