Skip to content

Error message prints dimensions in wrong order? (Trac #1762) #2357

@numpy-gitbot

Description

@numpy-gitbot

Original ticket http://projects.scipy.org/numpy/ticket/1762 on 2011-03-10 by @charris, assigned to unknown.

ERROR: test_setitem (test_panel.TestWidePanel)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/pandas/core/tests/test_panel.py", line 295, in test_setitem
    self.panel['ItemE'] = df
  File "/usr/lib64/python2.7/site-packages/pandas/core/panel.py", line 330, in __setitem__
    self.values[loc] = mat
ValueError: non-broadcastable output operand with shape (30,4) doesn't match the broadcast shape (4,30,1)

It appears to me that (4,30,1) should be (1,30,4)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions