{"action":"created","issue":{"url":"https://api.github.com/repos/SciRuby/daru/issues/324","repository_url":"https://api.github.com/repos/SciRuby/daru","labels_url":"https://api.github.com/repos/SciRuby/daru/issues/324/labels{/name}","comments_url":"https://api.github.com/repos/SciRuby/daru/issues/324/comments","events_url":"https://api.github.com/repos/SciRuby/daru/issues/324/events","html_url":"https://github.com/SciRuby/daru/issues/324","id":215439294,"number":324,"title":"#group_by with boolean gives `ArgumentError: comparison of Array with Array failed`","user":{"login":"dansbits","id":1403239,"avatar_url":"https://avatars3.githubusercontent.com/u/1403239?v=3","gravatar_id":"","url":"https://api.github.com/users/dansbits","html_url":"https://github.com/dansbits","followers_url":"https://api.github.com/users/dansbits/followers","following_url":"https://api.github.com/users/dansbits/following{/other_user}","gists_url":"https://api.github.com/users/dansbits/gists{/gist_id}","starred_url":"https://api.github.com/users/dansbits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dansbits/subscriptions","organizations_url":"https://api.github.com/users/dansbits/orgs","repos_url":"https://api.github.com/users/dansbits/repos","events_url":"https://api.github.com/users/dansbits/events{/privacy}","received_events_url":"https://api.github.com/users/dansbits/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-20T14:33:58Z","updated_at":"2017-03-20T14:52:25Z","closed_at":null,"body":"I was recently trying to get a count of true and false values in a column of my data frame and received `ArgumentError: comparison of Array with Array failed` when I tried to run group_by using only that column. I thought this might be something with my data set but the below example reproduces the error.\r\n\r\n```\r\ndf = Daru::DataFrame.new({ id: (1..10).to_a, is_training: (1..10).to_a.map { rand(2) == 0 } })\r\ndf.group_by([:is_training]).count\r\n```"},"comment":{"url":"https://api.github.com/repos/SciRuby/daru/issues/comments/287783381","html_url":"https://github.com/SciRuby/daru/issues/324#issuecomment-287783381","issue_url":"https://api.github.com/repos/SciRuby/daru/issues/324","id":287783381,"user":{"login":"zverok","id":129656,"avatar_url":"https://avatars2.githubusercontent.com/u/129656?v=3","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-03-20T14:52:25Z","updated_at":"2017-03-20T14:52:25Z","body":"I believe it is due to the fact that currently `group_by` for some reason sorts groups, and booleans can't be compared with `<=>`. \r\nThis redesign ticket is somehow related: https://github.com/SciRuby/daru/issues/152"}}
{"actor":{"display_login":"zverok"}}