{"action":"created","issue":{"url":"https://api.github.com/repos/pydata/pandas/issues/13665","repository_url":"https://api.github.com/repos/pydata/pandas","labels_url":"https://api.github.com/repos/pydata/pandas/issues/13665/labels{/name}","comments_url":"https://api.github.com/repos/pydata/pandas/issues/13665/comments","events_url":"https://api.github.com/repos/pydata/pandas/issues/13665/events","html_url":"https://github.com/pydata/pandas/issues/13665","id":165802839,"number":13665,"title":"merge of sparse dataframe fails","user":{"login":"simonm3","id":1199593,"avatar_url":"https://avatars.githubusercontent.com/u/1199593?v=3","gravatar_id":"","url":"https://api.github.com/users/simonm3","html_url":"https://github.com/simonm3","followers_url":"https://api.github.com/users/simonm3/followers","following_url":"https://api.github.com/users/simonm3/following{/other_user}","gists_url":"https://api.github.com/users/simonm3/gists{/gist_id}","starred_url":"https://api.github.com/users/simonm3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonm3/subscriptions","organizations_url":"https://api.github.com/users/simonm3/orgs","repos_url":"https://api.github.com/users/simonm3/repos","events_url":"https://api.github.com/users/simonm3/events{/privacy}","received_events_url":"https://api.github.com/users/simonm3/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-15T14:43:01Z","updated_at":"2016-07-16T18:50:09Z","closed_at":null,"body":"This works fine:\r\n\r\n    df = pd.DataFrame(np.random.randint(0,100,size=(100, 4)), columns=list('ABCD'))\r\n    df2 = pd.DataFrame(np.random.randint(0,100,size=(100, 4)), columns=list('ABCD'))\r\n    df.merge(df2, how=\"left\", on=\"A\")\r\n\r\nThis fails with \"TypeError: type object argument after * must be a sequence, not map\"\r\n\r\n    df = pd.DataFrame(np.random.randint(0,100,size=(100, 4)), columns=list('ABCD')).to_sparse()\r\n    df2 = pd.DataFrame(np.random.randint(0,100,size=(100, 4)), columns=list('ABCD')).to_sparse()\r\n    df.merge(df2, how=\"left\", on=\"A\")\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/pydata/pandas/issues/comments/233145132","html_url":"https://github.com/pydata/pandas/issues/13665#issuecomment-233145132","issue_url":"https://api.github.com/repos/pydata/pandas/issues/13665","id":233145132,"user":{"login":"sinhrks","id":1696302,"avatar_url":"https://avatars.githubusercontent.com/u/1696302?v=3","gravatar_id":"","url":"https://api.github.com/users/sinhrks","html_url":"https://github.com/sinhrks","followers_url":"https://api.github.com/users/sinhrks/followers","following_url":"https://api.github.com/users/sinhrks/following{/other_user}","gists_url":"https://api.github.com/users/sinhrks/gists{/gist_id}","starred_url":"https://api.github.com/users/sinhrks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sinhrks/subscriptions","organizations_url":"https://api.github.com/users/sinhrks/orgs","repos_url":"https://api.github.com/users/sinhrks/repos","events_url":"https://api.github.com/users/sinhrks/events{/privacy}","received_events_url":"https://api.github.com/users/sinhrks/received_events","type":"User","site_admin":false},"created_at":"2016-07-16T18:50:09Z","updated_at":"2016-07-16T18:50:09Z","body":"Thx for the report. Currently sparse doesn't support all the functionality and should raise understandable error. \r\n\r\nI feel supporting merge op in sparse data should have some limitations. Can you describe what type of data you actually have (pls show a sample data)? "}}
{"actor":{"display_login":"sinhrks"}}