{"action":"created","issue":{"url":"https://api.github.com/repos/SciRuby/daru/issues/342","repository_url":"https://api.github.com/repos/SciRuby/daru","labels_url":"https://api.github.com/repos/SciRuby/daru/issues/342/labels{/name}","comments_url":"https://api.github.com/repos/SciRuby/daru/issues/342/comments","events_url":"https://api.github.com/repos/SciRuby/daru/issues/342/events","html_url":"https://github.com/SciRuby/daru/issues/342","id":227345627,"number":342,"title":"Erroneous behaviours of MultiIndex","user":{"login":"zverok","id":129656,"avatar_url":"https://avatars1.githubusercontent.com/u/129656?v=4","gravatar_id":"","url":"https://api.github.com/users/zverok","html_url":"https://github.com/zverok","followers_url":"https://api.github.com/users/zverok/followers","following_url":"https://api.github.com/users/zverok/following{/other_user}","gists_url":"https://api.github.com/users/zverok/gists{/gist_id}","starred_url":"https://api.github.com/users/zverok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zverok/subscriptions","organizations_url":"https://api.github.com/users/zverok/orgs","repos_url":"https://api.github.com/users/zverok/repos","events_url":"https://api.github.com/users/zverok/events{/privacy}","received_events_url":"https://api.github.com/users/zverok/received_events","type":"User","site_admin":false},"labels":[{"id":134763781,"url":"https://api.github.com/repos/SciRuby/daru/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-05-09T12:15:24Z","updated_at":"2017-07-22T14:57:45Z","closed_at":null,"body":"Shown at https://github.com/SciRuby/daru/pull/340\r\n\r\n```ruby\r\ndf = Daru::DataFrame.new({b: [11,12,13,14,15], a: [101,102,103,104,105],\r\n        c: [11,22,33,44,55]},\r\n      order: [:a, :b, :c],\r\n      index: [[:k], [:k], [:k], [:l], [:l]])\r\n# => #<Daru::DataFrame(5x3)>\r\n#       a   b   c\r\n#   k 101  11  11\r\n#     102  12  22\r\n#     103  13  33\r\n#   l 104  14  44\r\n#     105  15  55 \r\n```\r\n\r\nProblems:\r\n1. one-level MultiIndex should not be a thing\r\n2. MultiIndex with repeated tuples should not be a thing"},"comment":{"url":"https://api.github.com/repos/SciRuby/daru/issues/comments/317188930","html_url":"https://github.com/SciRuby/daru/issues/342#issuecomment-317188930","issue_url":"https://api.github.com/repos/SciRuby/daru/issues/342","id":317188930,"user":{"login":"zverok","id":129656,"avatar_url":"https://avatars1.githubusercontent.com/u/129656?v=4","gravatar_id":"","url":"https://api.github.com/users/zverok","html_url":"https://github.com/zverok","followers_url":"https://api.github.com/users/zverok/followers","following_url":"https://api.github.com/users/zverok/following{/other_user}","gists_url":"https://api.github.com/users/zverok/gists{/gist_id}","starred_url":"https://api.github.com/users/zverok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zverok/subscriptions","organizations_url":"https://api.github.com/users/zverok/orgs","repos_url":"https://api.github.com/users/zverok/repos","events_url":"https://api.github.com/users/zverok/events{/privacy}","received_events_url":"https://api.github.com/users/zverok/received_events","type":"User","site_admin":false},"created_at":"2017-07-22T14:57:45Z","updated_at":"2017-07-22T14:57:45Z","body":"@Shekharrajak, I believe that:\r\n1. Creating 1-el MultiIndex should be either impossible (error), or silently converted into just Index\r\n2. Attempt to create MultiIndex with repeating tuples should be prohibited."}}
{"actor":{"display_login":"zverok"}}