{"action":"closed","issue":{"url":"https://api.github.com/repos/pydata/pandas/issues/13599","repository_url":"https://api.github.com/repos/pydata/pandas","labels_url":"https://api.github.com/repos/pydata/pandas/issues/13599/labels{/name}","comments_url":"https://api.github.com/repos/pydata/pandas/issues/13599/comments","events_url":"https://api.github.com/repos/pydata/pandas/issues/13599/events","html_url":"https://github.com/pydata/pandas/issues/13599","id":164671428,"number":13599,"title":"MultiIndex.from_arrays() does not check lenghts","user":{"login":"toobaz","id":1224492,"avatar_url":"https://avatars.githubusercontent.com/u/1224492?v=3","gravatar_id":"","url":"https://api.github.com/users/toobaz","html_url":"https://github.com/toobaz","followers_url":"https://api.github.com/users/toobaz/followers","following_url":"https://api.github.com/users/toobaz/following{/other_user}","gists_url":"https://api.github.com/users/toobaz/gists{/gist_id}","starred_url":"https://api.github.com/users/toobaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toobaz/subscriptions","organizations_url":"https://api.github.com/users/toobaz/orgs","repos_url":"https://api.github.com/users/toobaz/repos","events_url":"https://api.github.com/users/toobaz/events{/privacy}","received_events_url":"https://api.github.com/users/toobaz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pydata/pandas/labels/Difficulty%20Novice","name":"Difficulty Novice","color":"fbca04"},{"url":"https://api.github.com/repos/pydata/pandas/labels/Effort%20Low","name":"Effort Low","color":"006b75"},{"url":"https://api.github.com/repos/pydata/pandas/labels/Error%20Reporting","name":"Error Reporting","color":"ffa0ff"},{"url":"https://api.github.com/repos/pydata/pandas/labels/MultiIndex","name":"MultiIndex","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/pydata/pandas/milestones/40","html_url":"https://github.com/pydata/pandas/milestones/0.19.0","labels_url":"https://api.github.com/repos/pydata/pandas/milestones/40/labels","id":1639795,"number":40,"title":"0.19.0","description":"","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":190,"closed_issues":341,"state":"open","created_at":"2016-03-11T21:24:45Z","updated_at":"2016-07-20T22:25:22Z","due_on":"2016-08-30T22:00:00Z","closed_at":null},"comments":5,"created_at":"2016-07-09T15:24:31Z","updated_at":"2016-07-20T22:25:22Z","closed_at":"2016-07-20T22:25:22Z","body":"#### Code Sample, a copy-pastable example if possible\r\n\r\n```\r\nIn [2]: pd.MultiIndex.from_arrays([[1,2,3], ['a', 'b']])\r\nOut[2]: \r\nMultiIndex(levels=[[1, 2, 3], ['a', 'b']],\r\n           labels=[[0, 1, 2], [0, 1]])\r\n\r\nIn [3]: pd.MultiIndex.from_arrays([[1,2,3], ['a', 'b']]).values\r\n---------------------------------------------------------------------------\r\nValueError                                Traceback (most recent call last)\r\n<ipython-input-3-65e6fa14e07f> in <module>()\r\n----> 1 pd.MultiIndex.from_arrays([[1,2,3], ['a', 'b']]).values\r\n\r\n/home/nobackup/repo/pandas/pandas/indexes/multi.py in values(self)\r\n    552             values.append(taken)\r\n    553 \r\n--> 554         self._tuples = lib.fast_zip(values)\r\n    555         return self._tuples\r\n    556 \r\n\r\n/home/nobackup/repo/pandas/pandas/lib.pyx in pandas.lib.fast_zip (pandas/lib.c:11131)()\r\n    587         it = <flatiter> PyArray_IterNew(arr)\r\n    588         if len(arr) != n:\r\n--> 589             raise ValueError('all arrays must be same length')\r\n    590 \r\n    591         for i in range(n):\r\n\r\nValueError: all arrays must be same length\r\n\r\n```\r\n\r\n#### Expected Output\r\n\r\nThe first previous command should already raise an error.\r\n\r\n#### output of ``pd.show_versions()``\r\n```\r\n\r\nIn [4]: pd.show_versions()\r\n\r\nINSTALLED VERSIONS\r\n------------------\r\ncommit: a63bd12529ff309d957d714825b1753d0e02b7fa\r\npython: 3.5.1.final.0\r\npython-bits: 64\r\nOS: Linux\r\nOS-release: 4.5.0-2-amd64\r\nmachine: x86_64\r\nprocessor: \r\nbyteorder: little\r\nLC_ALL: None\r\nLANG: it_IT.utf8\r\nLOCALE: it_IT.UTF-8\r\n\r\npandas: 0.18.1+174.ga63bd12\r\nnose: 1.3.7\r\npip: 1.5.6\r\nsetuptools: 18.4\r\nCython: 0.23.4\r\nnumpy: 1.10.4\r\nscipy: 0.16.0\r\nstatsmodels: 0.8.0.dev0+111ddc0\r\nxarray: None\r\nIPython: 5.0.0.dev\r\nsphinx: 1.3.1\r\npatsy: 0.3.0-dev\r\ndateutil: 2.2\r\npytz: 2012c\r\nblosc: None\r\nbottleneck: 1.1.0dev\r\ntables: 3.2.2\r\nnumexpr: 2.5\r\nmatplotlib: 1.5.1\r\nopenpyxl: None\r\nxlrd: 0.9.4\r\nxlwt: 1.1.2\r\nxlsxwriter: 0.7.3\r\nlxml: None\r\nbs4: 4.4.0\r\nhtml5lib: 0.999\r\nhttplib2: 0.9.1\r\napiclient: 1.5.0\r\nsqlalchemy: 1.0.11\r\npymysql: None\r\npsycopg2: None\r\njinja2: 2.8\r\nboto: 2.38.0\r\npandas_datareader: 0.2.1\r\n\r\n```"}}
{"actor":{"display_login":"jreback"}}