{"action":"created","issue":{"url":"https://api.github.com/repos/daoliker/JData/issues/6","repository_url":"https://api.github.com/repos/daoliker/JData","labels_url":"https://api.github.com/repos/daoliker/JData/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/daoliker/JData/issues/6/comments","events_url":"https://api.github.com/repos/daoliker/JData/issues/6/events","html_url":"https://github.com/daoliker/JData/issues/6","id":218504997,"number":6,"title":"新手常见问题区(请将问题提在这个Issue下)","user":{"login":"zhangluoyang","id":17794867,"avatar_url":"https://avatars1.githubusercontent.com/u/17794867?v=3","gravatar_id":"","url":"https://api.github.com/users/zhangluoyang","html_url":"https://github.com/zhangluoyang","followers_url":"https://api.github.com/users/zhangluoyang/followers","following_url":"https://api.github.com/users/zhangluoyang/following{/other_user}","gists_url":"https://api.github.com/users/zhangluoyang/gists{/gist_id}","starred_url":"https://api.github.com/users/zhangluoyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhangluoyang/subscriptions","organizations_url":"https://api.github.com/users/zhangluoyang/orgs","repos_url":"https://api.github.com/users/zhangluoyang/repos","events_url":"https://api.github.com/users/zhangluoyang/events{/privacy}","received_events_url":"https://api.github.com/users/zhangluoyang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":31,"created_at":"2017-03-31T13:38:56Z","updated_at":"2017-05-04T06:52:41Z","closed_at":null,"body":"create_item_table有一段代码:\r\ndf_ac = df_ac.groupby(['sku_id'], as_index=False).apply(add_type_count)\r\n    # Select unique row     \r\n df_ac = df_ac.drop_duplicates('sku_id')\r\n都已经groupby了，怎么还是会出现重复的内容？"},"comment":{"url":"https://api.github.com/repos/daoliker/JData/issues/comments/299109617","html_url":"https://github.com/daoliker/JData/issues/6#issuecomment-299109617","issue_url":"https://api.github.com/repos/daoliker/JData/issues/6","id":299109617,"user":{"login":"mrsunyudong","id":27803177,"avatar_url":"https://avatars0.githubusercontent.com/u/27803177?v=3","gravatar_id":"","url":"https://api.github.com/users/mrsunyudong","html_url":"https://github.com/mrsunyudong","followers_url":"https://api.github.com/users/mrsunyudong/followers","following_url":"https://api.github.com/users/mrsunyudong/following{/other_user}","gists_url":"https://api.github.com/users/mrsunyudong/gists{/gist_id}","starred_url":"https://api.github.com/users/mrsunyudong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrsunyudong/subscriptions","organizations_url":"https://api.github.com/users/mrsunyudong/orgs","repos_url":"https://api.github.com/users/mrsunyudong/repos","events_url":"https://api.github.com/users/mrsunyudong/events{/privacy}","received_events_url":"https://api.github.com/users/mrsunyudong/received_events","type":"User","site_admin":false},"created_at":"2017-05-04T06:52:41Z","updated_at":"2017-05-04T06:52:41Z","body":"def add_type_count(group):\r\n    behavior_type = group.type.astype(int)\r\n    type_cnt = Counter(behavior_type)\r\n\r\n    group['browse_num'] = type_cnt[1]\r\n请问这个参数group是从哪里获得的呢？    在执行df_ac = df_ac.groupby(['user_id'], as_index=False).apply(add_type_count)中，调用add_type_count 并没有告诉group参数？\r\n"}}
{"actor":{"display_login":"mrsunyudong"}}