{"action":"created","comment":{"url":"https://api.github.com/repos/pydata/pandas/pulls/comments/49110015","id":49110015,"diff_hunk":"@@ -1862,8 +1990,11 @@ def convert_categorical(x):\n     if get_dtype_kinds(to_concat) - set(['object', 'category']):\n         # convert to object type and perform a regular concat\n         from pandas.core.common import _concat_compat\n-        return _concat_compat([np.array(x, copy=False, dtype=object)\n-                               for x in to_concat], axis=0)","path":"pandas/core/categorical.py","position":1442,"original_position":1442,"commit_id":"ab8ae80af07ea0bdceb5ed59c03f4b322d941ba5","original_commit_id":"ab8ae80af07ea0bdceb5ed59c03f4b322d941ba5","user":{"login":"rockg","id":3195015,"avatar_url":"https://avatars.githubusercontent.com/u/3195015?v=3","gravatar_id":"","url":"https://api.github.com/users/rockg","html_url":"https://github.com/rockg","followers_url":"https://api.github.com/users/rockg/followers","following_url":"https://api.github.com/users/rockg/following{/other_user}","gists_url":"https://api.github.com/users/rockg/gists{/gist_id}","starred_url":"https://api.github.com/users/rockg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rockg/subscriptions","organizations_url":"https://api.github.com/users/rockg/orgs","repos_url":"https://api.github.com/users/rockg/repos","events_url":"https://api.github.com/users/rockg/events{/privacy}","received_events_url":"https://api.github.com/users/rockg/received_events","type":"User","site_admin":false},"body":"This was a YAPF thing.  Clearly it likes moving everything to the next line.  Having an additional check for open parenthesis on the line would point out a lot of these that I missed through my manual go through.  Or this might be the ticket:\r\n\r\n```\r\nSPLIT_PENALTY_AFTER_OPENING_BRACKET\r\n    The penalty for splitting right after the opening bracket.\r\n```\r\nI can play around with that a bit.","created_at":"2016-01-07T18:52:26Z","updated_at":"2016-01-07T18:52:26Z","html_url":"https://github.com/pydata/pandas/pull/11951#discussion_r49110015","pull_request_url":"https://api.github.com/repos/pydata/pandas/pulls/11951","_links":{"self":{"href":"https://api.github.com/repos/pydata/pandas/pulls/comments/49110015"},"html":{"href":"https://github.com/pydata/pandas/pull/11951#discussion_r49110015"},"pull_request":{"href":"https://api.github.com/repos/pydata/pandas/pulls/11951"}}},"pull_request":{"url":"https://api.github.com/repos/pydata/pandas/pulls/11951","id":54932920,"html_url":"https://github.com/pydata/pandas/pull/11951","diff_url":"https://github.com/pydata/pandas/pull/11951.diff","patch_url":"https://github.com/pydata/pandas/pull/11951.patch","issue_url":"https://api.github.com/repos/pydata/pandas/issues/11951","number":11951,"state":"open","locked":false,"title":"PEP: pandas/core round 2","user":{"login":"rockg","id":3195015,"avatar_url":"https://avatars.githubusercontent.com/u/3195015?v=3","gravatar_id":"","url":"https://api.github.com/users/rockg","html_url":"https://github.com/rockg","followers_url":"https://api.github.com/users/rockg/followers","following_url":"https://api.github.com/users/rockg/following{/other_user}","gists_url":"https://api.github.com/users/rockg/gists{/gist_id}","starred_url":"https://api.github.com/users/rockg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rockg/subscriptions","organizations_url":"https://api.github.com/users/rockg/orgs","repos_url":"https://api.github.com/users/rockg/repos","events_url":"https://api.github.com/users/rockg/events{/privacy}","received_events_url":"https://api.github.com/users/rockg/received_events","type":"User","site_admin":false},"body":"Fix layout and pep8 compliance for categorical, common, and frame.  Used YAPF with default settings and then manual modifications including:\r\n-fixing line length of comments/docstrings for pep8 compliance\r\n-converting lambdas to functions for pep8 compliance\r\n-change YAPF default formatting of error strings\r\n-change some YAPF line break choices to make them more natural in my eyes.  For example converting\r\n\r\n```\r\nif (function1(argument) and function2(\r\n         argument)):\r\n```\r\nto\r\n```\r\nif (function1(argument) and\r\n   function2(argument)):\r\n```","created_at":"2016-01-03T21:47:08Z","updated_at":"2016-01-07T18:52:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"571094b6cfe351ba035fd67d954312c3cd1b6f07","assignee":null,"milestone":{"url":"https://api.github.com/repos/pydata/pandas/milestones/36","html_url":"https://github.com/pydata/pandas/milestones/0.18.0","labels_url":"https://api.github.com/repos/pydata/pandas/milestones/36/labels","id":1214851,"number":36,"title":"0.18.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":70,"closed_issues":133,"state":"open","created_at":"2015-07-19T20:18:45Z","updated_at":"2016-01-07T16:53:23Z","due_on":"2016-01-31T05:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/pydata/pandas/pulls/11951/commits","review_comments_url":"https://api.github.com/repos/pydata/pandas/pulls/11951/comments","review_comment_url":"https://api.github.com/repos/pydata/pandas/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pydata/pandas/issues/11951/comments","statuses_url":"https://api.github.com/repos/pydata/pandas/statuses/ab8ae80af07ea0bdceb5ed59c03f4b322d941ba5","head":{"label":"rockg:pep8-round2","ref":"pep8-round2","sha":"ab8ae80af07ea0bdceb5ed59c03f4b322d941ba5","user":{"login":"rockg","id":3195015,"avatar_url":"https://avatars.githubusercontent.com/u/3195015?v=3","gravatar_id":"","url":"https://api.github.com/users/rockg","html_url":"https://github.com/rockg","followers_url":"https://api.github.com/users/rockg/followers","following_url":"https://api.github.com/users/rockg/following{/other_user}","gists_url":"https://api.github.com/users/rockg/gists{/gist_id}","starred_url":"https://api.github.com/users/rockg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rockg/subscriptions","organizations_url":"https://api.github.com/users/rockg/orgs","repos_url":"https://api.github.com/users/rockg/repos","events_url":"https://api.github.com/users/rockg/events{/privacy}","received_events_url":"https://api.github.com/users/rockg/received_events","type":"User","site_admin":false},"repo":{"id":12351531,"name":"pandas","full_name":"rockg/pandas","owner":{"login":"rockg","id":3195015,"avatar_url":"https://avatars.githubusercontent.com/u/3195015?v=3","gravatar_id":"","url":"https://api.github.com/users/rockg","html_url":"https://github.com/rockg","followers_url":"https://api.github.com/users/rockg/followers","following_url":"https://api.github.com/users/rockg/following{/other_user}","gists_url":"https://api.github.com/users/rockg/gists{/gist_id}","starred_url":"https://api.github.com/users/rockg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rockg/subscriptions","organizations_url":"https://api.github.com/users/rockg/orgs","repos_url":"https://api.github.com/users/rockg/repos","events_url":"https://api.github.com/users/rockg/events{/privacy}","received_events_url":"https://api.github.com/users/rockg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rockg/pandas","description":"Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more","fork":true,"url":"https://api.github.com/repos/rockg/pandas","forks_url":"https://api.github.com/repos/rockg/pandas/forks","keys_url":"https://api.github.com/repos/rockg/pandas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rockg/pandas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rockg/pandas/teams","hooks_url":"https://api.github.com/repos/rockg/pandas/hooks","issue_events_url":"https://api.github.com/repos/rockg/pandas/issues/events{/number}","events_url":"https://api.github.com/repos/rockg/pandas/events","assignees_url":"https://api.github.com/repos/rockg/pandas/assignees{/user}","branches_url":"https://api.github.com/repos/rockg/pandas/branches{/branch}","tags_url":"https://api.github.com/repos/rockg/pandas/tags","blobs_url":"https://api.github.com/repos/rockg/pandas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rockg/pandas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rockg/pandas/git/refs{/sha}","trees_url":"https://api.github.com/repos/rockg/pandas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rockg/pandas/statuses/{sha}","languages_url":"https://api.github.com/repos/rockg/pandas/languages","stargazers_url":"https://api.github.com/repos/rockg/pandas/stargazers","contributors_url":"https://api.github.com/repos/rockg/pandas/contributors","subscribers_url":"https://api.github.com/repos/rockg/pandas/subscribers","subscription_url":"https://api.github.com/repos/rockg/pandas/subscription","commits_url":"https://api.github.com/repos/rockg/pandas/commits{/sha}","git_commits_url":"https://api.github.com/repos/rockg/pandas/git/commits{/sha}","comments_url":"https://api.github.com/repos/rockg/pandas/comments{/number}","issue_comment_url":"https://api.github.com/repos/rockg/pandas/issues/comments{/number}","contents_url":"https://api.github.com/repos/rockg/pandas/contents/{+path}","compare_url":"https://api.github.com/repos/rockg/pandas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rockg/pandas/merges","archive_url":"https://api.github.com/repos/rockg/pandas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rockg/pandas/downloads","issues_url":"https://api.github.com/repos/rockg/pandas/issues{/number}","pulls_url":"https://api.github.com/repos/rockg/pandas/pulls{/number}","milestones_url":"https://api.github.com/repos/rockg/pandas/milestones{/number}","notifications_url":"https://api.github.com/repos/rockg/pandas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rockg/pandas/labels{/name}","releases_url":"https://api.github.com/repos/rockg/pandas/releases{/id}","created_at":"2013-08-24T23:40:23Z","updated_at":"2015-03-11T01:22:53Z","pushed_at":"2016-01-07T12:40:45Z","git_url":"git://github.com/rockg/pandas.git","ssh_url":"git@github.com:rockg/pandas.git","clone_url":"https://github.com/rockg/pandas.git","svn_url":"https://github.com/rockg/pandas","homepage":"http://pandas.pydata.org","size":70878,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pydata:master","ref":"master","sha":"6132df0e34130c83ff743aa7b796f809d92e0b96","user":{"login":"pydata","id":1284191,"avatar_url":"https://avatars.githubusercontent.com/u/1284191?v=3","gravatar_id":"","url":"https://api.github.com/users/pydata","html_url":"https://github.com/pydata","followers_url":"https://api.github.com/users/pydata/followers","following_url":"https://api.github.com/users/pydata/following{/other_user}","gists_url":"https://api.github.com/users/pydata/gists{/gist_id}","starred_url":"https://api.github.com/users/pydata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pydata/subscriptions","organizations_url":"https://api.github.com/users/pydata/orgs","repos_url":"https://api.github.com/users/pydata/repos","events_url":"https://api.github.com/users/pydata/events{/privacy}","received_events_url":"https://api.github.com/users/pydata/received_events","type":"Organization","site_admin":false},"repo":{"id":858127,"name":"pandas","full_name":"pydata/pandas","owner":{"login":"pydata","id":1284191,"avatar_url":"https://avatars.githubusercontent.com/u/1284191?v=3","gravatar_id":"","url":"https://api.github.com/users/pydata","html_url":"https://github.com/pydata","followers_url":"https://api.github.com/users/pydata/followers","following_url":"https://api.github.com/users/pydata/following{/other_user}","gists_url":"https://api.github.com/users/pydata/gists{/gist_id}","starred_url":"https://api.github.com/users/pydata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pydata/subscriptions","organizations_url":"https://api.github.com/users/pydata/orgs","repos_url":"https://api.github.com/users/pydata/repos","events_url":"https://api.github.com/users/pydata/events{/privacy}","received_events_url":"https://api.github.com/users/pydata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pydata/pandas","description":"Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more","fork":false,"url":"https://api.github.com/repos/pydata/pandas","forks_url":"https://api.github.com/repos/pydata/pandas/forks","keys_url":"https://api.github.com/repos/pydata/pandas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pydata/pandas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pydata/pandas/teams","hooks_url":"https://api.github.com/repos/pydata/pandas/hooks","issue_events_url":"https://api.github.com/repos/pydata/pandas/issues/events{/number}","events_url":"https://api.github.com/repos/pydata/pandas/events","assignees_url":"https://api.github.com/repos/pydata/pandas/assignees{/user}","branches_url":"https://api.github.com/repos/pydata/pandas/branches{/branch}","tags_url":"https://api.github.com/repos/pydata/pandas/tags","blobs_url":"https://api.github.com/repos/pydata/pandas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pydata/pandas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pydata/pandas/git/refs{/sha}","trees_url":"https://api.github.com/repos/pydata/pandas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pydata/pandas/statuses/{sha}","languages_url":"https://api.github.com/repos/pydata/pandas/languages","stargazers_url":"https://api.github.com/repos/pydata/pandas/stargazers","contributors_url":"https://api.github.com/repos/pydata/pandas/contributors","subscribers_url":"https://api.github.com/repos/pydata/pandas/subscribers","subscription_url":"https://api.github.com/repos/pydata/pandas/subscription","commits_url":"https://api.github.com/repos/pydata/pandas/commits{/sha}","git_commits_url":"https://api.github.com/repos/pydata/pandas/git/commits{/sha}","comments_url":"https://api.github.com/repos/pydata/pandas/comments{/number}","issue_comment_url":"https://api.github.com/repos/pydata/pandas/issues/comments{/number}","contents_url":"https://api.github.com/repos/pydata/pandas/contents/{+path}","compare_url":"https://api.github.com/repos/pydata/pandas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pydata/pandas/merges","archive_url":"https://api.github.com/repos/pydata/pandas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pydata/pandas/downloads","issues_url":"https://api.github.com/repos/pydata/pandas/issues{/number}","pulls_url":"https://api.github.com/repos/pydata/pandas/pulls{/number}","milestones_url":"https://api.github.com/repos/pydata/pandas/milestones{/number}","notifications_url":"https://api.github.com/repos/pydata/pandas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pydata/pandas/labels{/name}","releases_url":"https://api.github.com/repos/pydata/pandas/releases{/id}","created_at":"2010-08-24T01:37:33Z","updated_at":"2016-01-07T15:28:34Z","pushed_at":"2016-01-07T18:49:14Z","git_url":"git://github.com/pydata/pandas.git","ssh_url":"git@github.com:pydata/pandas.git","clone_url":"https://github.com/pydata/pandas.git","svn_url":"https://github.com/pydata/pandas","homepage":"http://pandas.pydata.org","size":131903,"stargazers_count":5534,"watchers_count":5534,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2178,"mirror_url":null,"open_issues_count":1569,"forks":2178,"open_issues":1569,"watchers":5534,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pydata/pandas/pulls/11951"},"html":{"href":"https://github.com/pydata/pandas/pull/11951"},"issue":{"href":"https://api.github.com/repos/pydata/pandas/issues/11951"},"comments":{"href":"https://api.github.com/repos/pydata/pandas/issues/11951/comments"},"review_comments":{"href":"https://api.github.com/repos/pydata/pandas/pulls/11951/comments"},"review_comment":{"href":"https://api.github.com/repos/pydata/pandas/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pydata/pandas/pulls/11951/commits"},"statuses":{"href":"https://api.github.com/repos/pydata/pandas/statuses/ab8ae80af07ea0bdceb5ed59c03f4b322d941ba5"}}}}