{"action":"closed","issue":{"url":"https://api.github.com/repos/pydata/pandas/issues/8285","labels_url":"https://api.github.com/repos/pydata/pandas/issues/8285/labels{/name}","comments_url":"https://api.github.com/repos/pydata/pandas/issues/8285/comments","events_url":"https://api.github.com/repos/pydata/pandas/issues/8285/events","html_url":"https://github.com/pydata/pandas/issues/8285","id":42943891,"number":8285,"title":"BUG? Can construct constant Series and DataFrame, but not Panel or Panel4D","user":{"login":"seth-p","id":7441788,"avatar_url":"https://avatars.githubusercontent.com/u/7441788?v=3","gravatar_id":"","url":"https://api.github.com/users/seth-p","html_url":"https://github.com/seth-p","followers_url":"https://api.github.com/users/seth-p/followers","following_url":"https://api.github.com/users/seth-p/following{/other_user}","gists_url":"https://api.github.com/users/seth-p/gists{/gist_id}","starred_url":"https://api.github.com/users/seth-p/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seth-p/subscriptions","organizations_url":"https://api.github.com/users/seth-p/orgs","repos_url":"https://api.github.com/users/seth-p/repos","events_url":"https://api.github.com/users/seth-p/events{/privacy}","received_events_url":"https://api.github.com/users/seth-p/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pydata/pandas/labels/API%20Design","name":"API Design","color":"AD7FA8"},{"url":"https://api.github.com/repos/pydata/pandas/labels/Good%20as%20first%20PR","name":"Good as first PR","color":"e1aa44"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/pydata/pandas/milestones/25","html_url":"https://github.com/pydata/pandas/milestones/0.16.0","labels_url":"https://api.github.com/repos/pydata/pandas/milestones/25/labels","id":569113,"number":25,"title":"0.16.0","description":"after 0.15 of course!","creator":{"login":"jreback","id":953992,"avatar_url":"https://avatars.githubusercontent.com/u/953992?v=3","gravatar_id":"","url":"https://api.github.com/users/jreback","html_url":"https://github.com/jreback","followers_url":"https://api.github.com/users/jreback/followers","following_url":"https://api.github.com/users/jreback/following{/other_user}","gists_url":"https://api.github.com/users/jreback/gists{/gist_id}","starred_url":"https://api.github.com/users/jreback/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jreback/subscriptions","organizations_url":"https://api.github.com/users/jreback/orgs","repos_url":"https://api.github.com/users/jreback/repos","events_url":"https://api.github.com/users/jreback/events{/privacy}","received_events_url":"https://api.github.com/users/jreback/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":387,"state":"open","created_at":"2014-02-14T03:31:22Z","updated_at":"2015-03-14T01:31:43Z","due_on":"2015-03-20T04:00:00Z","closed_at":null},"comments":1,"created_at":"2014-09-16T22:57:04Z","updated_at":"2015-03-14T01:31:43Z","closed_at":"2015-03-14T01:31:43Z","body":"Is it accidental that the Series and DataFrame constructors accept a single number for ``data``, but the Panel and Panel4D constructors do not?\r\n\r\n```\r\nIn [182]: from pandas import Series, DataFrame, Panel, Panel4D\r\n\r\nIn [183]: Series(1., index=range(2))\r\nOut[183]:\r\n0    1\r\n1    1\r\ndtype: float64\r\n\r\nIn [184]: DataFrame(1., index=range(2), columns=range(2))\r\nOut[184]:\r\n   0  1\r\n0  1  1\r\n1  1  1\r\n\r\nIn [185]: Panel(1., items=range(2), major_axis=range(2), minor_axis=range(2))\r\n---------------------------------------------------------------------------\r\nPandasError                               Traceback (most recent call last)\r\n<ipython-input-185-89f6618b848f> in <module>()\r\n----> 1 Panel(1., items=range(2), major_axis=range(2), minor_axis=range(2))\r\n\r\nC:\\Python34\\lib\\site-packages\\pandas\\core\\panel.py in __init__(self, data, items, major_axis, minor_axis, copy, dtype)\r\n    133                  copy=False, dtype=None):\r\n    134         self._init_data(data=data, items=items, major_axis=major_axis,\r\n--> 135                         minor_axis=minor_axis, copy=copy, dtype=dtype)\r\n    136\r\n    137     def _init_data(self, data, copy, dtype, **kwargs):\r\n\r\nC:\\Python34\\lib\\site-packages\\pandas\\core\\panel.py in _init_data(self, data, copy, dtype, **kwargs)\r\n    161             dtype = None\r\n    162         else:  # pragma: no cover\r\n--> 163             raise PandasError('Panel constructor not properly called!')\r\n    164\r\n    165         NDFrame.__init__(self, mgr, axes=axes, copy=copy, dtype=dtype)\r\n\r\nPandasError: Panel constructor not properly called!\r\n\r\nIn [186]: Panel4D(1., labels=range(2), items=range(2), major_axis=range(2), minor_axis=range(2))\r\n---------------------------------------------------------------------------\r\nPandasError                               Traceback (most recent call last)\r\n<ipython-input-187-8f22d9107a3e> in <module>()\r\n----> 1 Panel4D(1., labels=range(2), items=range(2), major_axis=range(2), minor_axis=range(2))\r\n\r\nC:\\Python34\\lib\\site-packages\\pandas\\core\\panel4d.py in panel4d_init(self, data, labels, items, major_axis, minor_axis, copy, dtype)\r\n     37     self._init_data(data=data, labels=labels, items=items,\r\n     38                     major_axis=major_axis, minor_axis=minor_axis,\r\n---> 39                     copy=copy, dtype=dtype)\r\n     40\r\n     41 Panel4D.__init__ = panel4d_init\r\n\r\nC:\\Python34\\lib\\site-packages\\pandas\\core\\panel.py in _init_data(self, data, copy, dtype, **kwargs)\r\n    161             dtype = None\r\n    162         else:  # pragma: no cover\r\n--> 163             raise PandasError('Panel constructor not properly called!')\r\n    164\r\n    165         NDFrame.__init__(self, mgr, axes=axes, copy=copy, dtype=dtype)\r\n\r\nPandasError: Panel constructor not properly called!\r\n```"}}