{"action":"closed","issue":{"url":"https://api.github.com/repos/pydata/pandas/issues/11490","labels_url":"https://api.github.com/repos/pydata/pandas/issues/11490/labels{/name}","comments_url":"https://api.github.com/repos/pydata/pandas/issues/11490/comments","events_url":"https://api.github.com/repos/pydata/pandas/issues/11490/events","html_url":"https://github.com/pydata/pandas/issues/11490","id":114404227,"number":11490,"title":"Empty preconstructed pandas results in error in Variable Explorer","user":{"login":"Temmplar","id":8689085,"avatar_url":"https://avatars.githubusercontent.com/u/8689085?v=3","gravatar_id":"","url":"https://api.github.com/users/Temmplar","html_url":"https://github.com/Temmplar","followers_url":"https://api.github.com/users/Temmplar/followers","following_url":"https://api.github.com/users/Temmplar/following{/other_user}","gists_url":"https://api.github.com/users/Temmplar/gists{/gist_id}","starred_url":"https://api.github.com/users/Temmplar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Temmplar/subscriptions","organizations_url":"https://api.github.com/users/Temmplar/orgs","repos_url":"https://api.github.com/users/Temmplar/repos","events_url":"https://api.github.com/users/Temmplar/events{/privacy}","received_events_url":"https://api.github.com/users/Temmplar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-31T11:13:40Z","updated_at":"2015-10-31T11:15:22Z","closed_at":"2015-10-31T11:15:22Z","body":"If I construct a DF like this:\r\niv_bd = pd.DataFrame(columns=['Jan','Feb','Mar'])\r\n\r\nIt causes an internal error instead of showing something like e.g. \"empty Dataframe\"\r\n\r\n```\r\nSpyder Internal Console\r\n\r\nThis console is used to report application\r\ninternal errors and to inspect Spyder\r\ninternals with the following commands:\r\n  spy.app, spy.window, dir(spy)\r\n\r\nPlease don't use it to run your code\r\n\r\n>>> /home/george/anaconda/lib/python2.7/site-packages/nbformat/current.py:19: UserWarning: nbformat.current is deprecated.\r\n\r\n- use nbformat for read/write/validate public API\r\n- use nbformat.vX directly to composing notebooks of a particular version\r\n\r\n  \"\"\")\r\nTraceback (most recent call last):\r\n  File \"/home/george/anaconda/lib/python2.7/site-packages/spyderlib/widgets/dicteditor.py\", line 503, in createEditor\r\n    if not editor.setup_and_check(value, title=key):\r\n  File \"/home/george/anaconda/lib/python2.7/site-packages/spyderlib/widgets/dataframeeditor.py\", line 494, in setup_and_check\r\n    self.dataModel = DataFrameModel(data, parent=self)\r\n  File \"/home/george/anaconda/lib/python2.7/site-packages/spyderlib/widgets/dataframeeditor.py\", line 90, in __init__\r\n    self.max_min_col_update()\r\n  File \"/home/george/anaconda/lib/python2.7/site-packages/spyderlib/widgets/dataframeeditor.py\", line 124, in max_min_col_update\r\n    mask = float_intran & (~ self.complex_intran)\r\n  File \"/home/george/anaconda/lib/python2.7/site-packages/pandas/core/generic.py\", line 639, in __invert__\r\n    arr = operator.inv(_values_from_object(self))\r\nTypeError: ufunc 'invert' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''\r\nTraceback (most recent call last):\r\n  File \"/home/george/anaconda/lib/python2.7/site-packages/spyderlib/widgets/dicteditor.py\", line 503, in createEditor\r\n    if not editor.setup_and_check(value, title=key):\r\n  File \"/home/george/anaconda/lib/python2.7/site-packages/spyderlib/widgets/dataframeeditor.py\", line 494, in setup_and_check\r\n    self.dataModel = DataFrameModel(data, parent=self)\r\n  File \"/home/george/anaconda/lib/python2.7/site-packages/spyderlib/widgets/dataframeeditor.py\", line 90, in __init__\r\n    self.max_min_col_update()\r\n  File \"/home/george/anaconda/lib/python2.7/site-packages/spyderlib/widgets/dataframeeditor.py\", line 124, in max_min_col_update\r\n    mask = float_intran & (~ self.complex_intran)\r\n  File \"/home/george/anaconda/lib/python2.7/site-packages/pandas/core/generic.py\", line 639, in __invert__\r\n    arr = operator.inv(_values_from_object(self))\r\nTypeError: ufunc 'invert' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''\r\nTraceback (most recent call last):\r\n  File \"/home/george/anaconda/lib/python2.7/site-packages/spyderlib/widgets/dicteditor.py\", line 503, in createEditor\r\n    if not editor.setup_and_check(value, title=key):\r\n  File \"/home/george/anaconda/lib/python2.7/site-packages/spyderlib/widgets/dataframeeditor.py\", line 494, in setup_and_check\r\n    self.dataModel = DataFrameModel(data, parent=self)\r\n  File \"/home/george/anaconda/lib/python2.7/site-packages/spyderlib/widgets/dataframeeditor.py\", line 90, in __init__\r\n    self.max_min_col_update()\r\n  File \"/home/george/anaconda/lib/python2.7/site-packages/spyderlib/widgets/dataframeeditor.py\", line 124, in max_min_col_update\r\n    mask = float_intran & (~ self.complex_intran)\r\n  File \"/home/george/anaconda/lib/python2.7/site-packages/pandas/core/generic.py\", line 639, in __invert__\r\n    arr = operator.inv(_values_from_object(self))\r\nTypeError: ufunc 'invert' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''\r\nTraceback (most recent call last):\r\n  File \"/home/george/anaconda/lib/python2.7/site-packages/spyderlib/widgets/dicteditor.py\", line 503, in createEditor\r\n    if not editor.setup_and_check(value, title=key):\r\n  File \"/home/george/anaconda/lib/python2.7/site-packages/spyderlib/widgets/dataframeeditor.py\", line 494, in setup_and_check\r\n    self.dataModel = DataFrameModel(data, parent=self)\r\n  File \"/home/george/anaconda/lib/python2.7/site-packages/spyderlib/widgets/dataframeeditor.py\", line 90, in __init__\r\n    self.max_min_col_update()\r\n  File \"/home/george/anaconda/lib/python2.7/site-packages/spyderlib/widgets/dataframeeditor.py\", line 124, in max_min_col_update\r\n    mask = float_intran & (~ self.complex_intran)\r\n  File \"/home/george/anaconda/lib/python2.7/site-packages/pandas/core/generic.py\", line 639, in __invert__\r\n    arr = operator.inv(_values_from_object(self))\r\nTypeError: ufunc 'invert' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''\r\n```"}}