{"action":"created","issue":{"url":"https://api.github.com/repos/pydata/pandas/issues/10536","labels_url":"https://api.github.com/repos/pydata/pandas/issues/10536/labels{/name}","comments_url":"https://api.github.com/repos/pydata/pandas/issues/10536/comments","events_url":"https://api.github.com/repos/pydata/pandas/issues/10536/events","html_url":"https://github.com/pydata/pandas/issues/10536","id":94116779,"number":10536,"title":"Concat does not work for sparse series","user":{"login":"artemyk","id":833768,"avatar_url":"https://avatars.githubusercontent.com/u/833768?v=3","gravatar_id":"","url":"https://api.github.com/users/artemyk","html_url":"https://github.com/artemyk","followers_url":"https://api.github.com/users/artemyk/followers","following_url":"https://api.github.com/users/artemyk/following{/other_user}","gists_url":"https://api.github.com/users/artemyk/gists{/gist_id}","starred_url":"https://api.github.com/users/artemyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artemyk/subscriptions","organizations_url":"https://api.github.com/users/artemyk/orgs","repos_url":"https://api.github.com/users/artemyk/repos","events_url":"https://api.github.com/users/artemyk/events{/privacy}","received_events_url":"https://api.github.com/users/artemyk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pydata/pandas/labels/Bug","name":"Bug","color":"e10c02"},{"url":"https://api.github.com/repos/pydata/pandas/labels/Reshaping","name":"Reshaping","color":"02d7e1"},{"url":"https://api.github.com/repos/pydata/pandas/labels/Sparse","name":"Sparse","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/pydata/pandas/milestones/32","html_url":"https://github.com/pydata/pandas/milestones/Next%20Major%20Release","labels_url":"https://api.github.com/repos/pydata/pandas/milestones/32/labels","id":933188,"number":32,"title":"Next Major Release","description":"after 0.16.1 of course","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":801,"closed_issues":52,"state":"open","created_at":"2015-01-13T10:53:19Z","updated_at":"2015-07-11T16:55:46Z","due_on":"2015-08-31T04:00:00Z","closed_at":null},"comments":1,"created_at":"2015-07-09T18:16:36Z","updated_at":"2015-07-11T16:56:34Z","closed_at":null,"body":"Concatenating two sparse series does not return sparse data structures as expected:\r\n\r\n```\r\nIn [1]: import pandas as pd\r\n\r\nIn [2]: ts = pd.Series([0, 1, 1, 2, 3, 0 ,0 ,0])\r\n\r\nIn [3]: sts = ts.to_sparse()\r\n\r\nIn [4]: print type(pd.concat([sts, sts], axis=0))\r\n<class 'pandas.core.series.Series'>\r\n\r\nIn [5]: print type(pd.concat([sts, sts], axis=1))\r\n<class 'pandas.core.frame.DataFrame'>\r\n```\r\n\r\nThe above *does* work correctly for SparseDataFrames."},"comment":{"url":"https://api.github.com/repos/pydata/pandas/issues/comments/120643759","html_url":"https://github.com/pydata/pandas/issues/10536#issuecomment-120643759","issue_url":"https://api.github.com/repos/pydata/pandas/issues/10536","id":120643759,"user":{"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},"created_at":"2015-07-11T16:56:33Z","updated_at":"2015-07-11T16:56:33Z","body":"xref #10531 "}}