{"action":"created","issue":{"url":"https://api.github.com/repos/pydata/pandas/issues/10258","labels_url":"https://api.github.com/repos/pydata/pandas/issues/10258/labels{/name}","comments_url":"https://api.github.com/repos/pydata/pandas/issues/10258/comments","events_url":"https://api.github.com/repos/pydata/pandas/issues/10258/events","html_url":"https://github.com/pydata/pandas/pull/10258","id":84524831,"number":10258,"title":"BUG: SparseSeries constructor ignores input data name","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},"labels":[{"url":"https://api.github.com/repos/pydata/pandas/labels/Bug","name":"Bug","color":"e10c02"},{"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/35","html_url":"https://github.com/pydata/pandas/milestones/0.16.2","labels_url":"https://api.github.com/repos/pydata/pandas/milestones/35/labels","id":1145853,"number":35,"title":"0.16.2","description":"","creator":{"login":"jorisvandenbossche","id":1020496,"avatar_url":"https://avatars.githubusercontent.com/u/1020496?v=3","gravatar_id":"","url":"https://api.github.com/users/jorisvandenbossche","html_url":"https://github.com/jorisvandenbossche","followers_url":"https://api.github.com/users/jorisvandenbossche/followers","following_url":"https://api.github.com/users/jorisvandenbossche/following{/other_user}","gists_url":"https://api.github.com/users/jorisvandenbossche/gists{/gist_id}","starred_url":"https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorisvandenbossche/subscriptions","organizations_url":"https://api.github.com/users/jorisvandenbossche/orgs","repos_url":"https://api.github.com/users/jorisvandenbossche/repos","events_url":"https://api.github.com/users/jorisvandenbossche/events{/privacy}","received_events_url":"https://api.github.com/users/jorisvandenbossche/received_events","type":"User","site_admin":false},"open_issues":25,"closed_issues":50,"state":"open","created_at":"2015-06-02T19:23:30Z","updated_at":"2015-06-03T12:39:17Z","due_on":"2015-06-12T04:00:00Z","closed_at":null},"comments":1,"created_at":"2015-06-03T12:07:26Z","updated_at":"2015-06-03T12:39:24Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/pydata/pandas/pulls/10258","html_url":"https://github.com/pydata/pandas/pull/10258","diff_url":"https://github.com/pydata/pandas/pull/10258.diff","patch_url":"https://github.com/pydata/pandas/pull/10258.patch"},"body":"When constructing ``Series`` from ``Series``, name attribute is preserved otherwise specified.\r\n\r\n```\r\nimport pandas as pd\r\ns = pd.Series([1, 2, 3], name='a')\r\npd.Series(s)\r\n# 0    1\r\n# 1    2\r\n# 2    3\r\n# Name: a, dtype: int64\r\n\r\npd.Series(s, name='x')\r\n# 0    1\r\n# 1    2\r\n# 2    3\r\n# Name: x, dtype: int64\r\n```\r\n\r\nBut ``SparseSeries`` doesn't preserve its name.\r\ns = pd.SparseSeries([1, 2, 3], name='a')\r\npd.SparseSeries(s)\r\n# 0    1\r\n# 1    2\r\n# 2    3\r\n# dtype: int64\r\n# BlockIndex\r\n# Block locations: array([0], dtype=int32)\r\n# Block lengths: array([3], dtype=int32)\r\n```"},"comment":{"url":"https://api.github.com/repos/pydata/pandas/issues/comments/108377706","html_url":"https://github.com/pydata/pandas/pull/10258#issuecomment-108377706","issue_url":"https://api.github.com/repos/pydata/pandas/issues/10258","id":108377706,"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-06-03T12:39:24Z","updated_at":"2015-06-03T12:39:24Z","body":"lgtm, merge when green."}}