{"action":"created","comment":{"url":"https://api.github.com/repos/pandas-dev/pandas/pulls/comments/90432640","pull_request_review_id":10950061,"id":90432640,"diff_hunk":"@@ -2619,6 +2619,73 @@ def to_csv(self, path=None, index=True, sep=\",\", na_rep='',\n         if path is None:\n             return result\n \n+    def to_excel(self, excel_writer, sheet_name='Sheet1', na_rep='',\n+                 float_format=None, columns=None, header=True, index=True,\n+                 index_label=None, startrow=0, startcol=0, engine=None,\n+                 merge_cells=True, encoding=None, inf_rep='inf', verbose=True):\n+        \"\"\"\n+        Write Series to a excel sheet\n+\n+        Parameters\n+        ----------\n+        excel_writer : string or ExcelWriter object\n+            File path or existing ExcelWriter\n+        sheet_name : string, default 'Sheet1'\n+            Name of sheet which will contain DataFrame\n+        na_rep : string, default ''\n+            Missing data representation\n+        float_format : string, default None\n+            Format string for floating point numbers\n+        columns : sequence, optional\n+            Columns to write\n+        header : boolean or list of string, default True\n+            Write out column names. If a list of string is given it is\n+            assumed to be aliases for the column names\n+        index : boolean, default True\n+            Write row names (index)\n+        index_label : string or sequence, default None\n+            Column label for index column(s) if desired. If None is given, and\n+            `header` and `index` are True, then the index names are used. A\n+            sequence should be given if the DataFrame uses MultiIndex.\n+        startrow :\n+            upper left cell row to dump data frame\n+        startcol :\n+            upper left cell column to dump data frame\n+        engine : string, default None\n+            write engine to use - you can also set this via the options\n+            ``io.excel.xlsx.writer``, ``io.excel.xls.writer``, and\n+            ``io.excel.xlsm.writer``.\n+        merge_cells : boolean, default True\n+            Write MultiIndex and Hierarchical Rows as merged cells.\n+        encoding: string, default None\n+            encoding of the resulting excel file. Only necessary for xlwt,\n+            other writers support unicode natively.\n+        inf_rep : string, default 'inf'\n+            Representation for infinity (there is no native representation for\n+            infinity in Excel)\n+\n+        Notes\n+        -----\n+        If passing an existing ExcelWriter object, then the sheet will be added\n+        to the existing workbook.  This can be used to save different\n+        DataFrames to one workbook:\n+\n+        >>> writer = ExcelWriter('output.xlsx')\n+        >>> s.to_excel(writer,'Sheet1')\n+        >>> s.to_excel(writer,'Sheet2')\n+        >>> writer.save()\n+\n+        For compatibility with to_csv, to_excel serializes lists and dicts to\n+        strings before writing.\n+        \"\"\"\n+        df = self.to_frame()\n+        df.to_excel(excel_writer=excel_writer, sheet_name=sheet_name,\n+                    na_rep=na_rep, float_format=float_format, columns=columns,\n+                    header=header, index=index, index_label=index_label,\n+                    startrow=startrow, startcol=startcol, engine=engine,\n+                    merge_cells=merge_cells, encoding=encoding,","path":"pandas/core/series.py","position":68,"original_position":68,"commit_id":"8525253c5f249db95413e0bc1f8c11dff999b086","original_commit_id":"8525253c5f249db95413e0bc1f8c11dff999b086","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},"body":"use shared docs here to avoid repeating everything","created_at":"2016-12-01T11:55:40Z","updated_at":"2016-12-01T11:55:54Z","html_url":"https://github.com/pandas-dev/pandas/pull/14780#discussion_r90432640","pull_request_url":"https://api.github.com/repos/pandas-dev/pandas/pulls/14780","_links":{"self":{"href":"https://api.github.com/repos/pandas-dev/pandas/pulls/comments/90432640"},"html":{"href":"https://github.com/pandas-dev/pandas/pull/14780#discussion_r90432640"},"pull_request":{"href":"https://api.github.com/repos/pandas-dev/pandas/pulls/14780"}}},"pull_request":{"url":"https://api.github.com/repos/pandas-dev/pandas/pulls/14780","id":96040910,"html_url":"https://github.com/pandas-dev/pandas/pull/14780","diff_url":"https://github.com/pandas-dev/pandas/pull/14780.diff","patch_url":"https://github.com/pandas-dev/pandas/pull/14780.patch","issue_url":"https://api.github.com/repos/pandas-dev/pandas/issues/14780","number":14780,"state":"open","locked":false,"title":"ENH: Pandas Series provide to_excel method","user":{"login":"scls19fr","id":109167,"avatar_url":"https://avatars.githubusercontent.com/u/109167?v=3","gravatar_id":"","url":"https://api.github.com/users/scls19fr","html_url":"https://github.com/scls19fr","followers_url":"https://api.github.com/users/scls19fr/followers","following_url":"https://api.github.com/users/scls19fr/following{/other_user}","gists_url":"https://api.github.com/users/scls19fr/gists{/gist_id}","starred_url":"https://api.github.com/users/scls19fr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scls19fr/subscriptions","organizations_url":"https://api.github.com/users/scls19fr/orgs","repos_url":"https://api.github.com/users/scls19fr/repos","events_url":"https://api.github.com/users/scls19fr/events{/privacy}","received_events_url":"https://api.github.com/users/scls19fr/received_events","type":"User","site_admin":false},"body":" - [x] closes #8825\r\n - [ ] tests added / passed\r\n - [ ] passes ``git diff upstream/master | flake8 --diff``\r\n - [ ] whatsnew entry\r\n","created_at":"2016-12-01T07:51:08Z","updated_at":"2016-12-01T11:55:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"46d7ef777fcac0896d79e2046229076c9a36121d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/pandas-dev/pandas/pulls/14780/commits","review_comments_url":"https://api.github.com/repos/pandas-dev/pandas/pulls/14780/comments","review_comment_url":"https://api.github.com/repos/pandas-dev/pandas/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pandas-dev/pandas/issues/14780/comments","statuses_url":"https://api.github.com/repos/pandas-dev/pandas/statuses/8525253c5f249db95413e0bc1f8c11dff999b086","head":{"label":"scls19fr:series_to_excel","ref":"series_to_excel","sha":"8525253c5f249db95413e0bc1f8c11dff999b086","user":{"login":"scls19fr","id":109167,"avatar_url":"https://avatars.githubusercontent.com/u/109167?v=3","gravatar_id":"","url":"https://api.github.com/users/scls19fr","html_url":"https://github.com/scls19fr","followers_url":"https://api.github.com/users/scls19fr/followers","following_url":"https://api.github.com/users/scls19fr/following{/other_user}","gists_url":"https://api.github.com/users/scls19fr/gists{/gist_id}","starred_url":"https://api.github.com/users/scls19fr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scls19fr/subscriptions","organizations_url":"https://api.github.com/users/scls19fr/orgs","repos_url":"https://api.github.com/users/scls19fr/repos","events_url":"https://api.github.com/users/scls19fr/events{/privacy}","received_events_url":"https://api.github.com/users/scls19fr/received_events","type":"User","site_admin":false},"repo":{"id":75262593,"name":"pandas","full_name":"scls19fr/pandas","owner":{"login":"scls19fr","id":109167,"avatar_url":"https://avatars.githubusercontent.com/u/109167?v=3","gravatar_id":"","url":"https://api.github.com/users/scls19fr","html_url":"https://github.com/scls19fr","followers_url":"https://api.github.com/users/scls19fr/followers","following_url":"https://api.github.com/users/scls19fr/following{/other_user}","gists_url":"https://api.github.com/users/scls19fr/gists{/gist_id}","starred_url":"https://api.github.com/users/scls19fr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scls19fr/subscriptions","organizations_url":"https://api.github.com/users/scls19fr/orgs","repos_url":"https://api.github.com/users/scls19fr/repos","events_url":"https://api.github.com/users/scls19fr/events{/privacy}","received_events_url":"https://api.github.com/users/scls19fr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/scls19fr/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/scls19fr/pandas","forks_url":"https://api.github.com/repos/scls19fr/pandas/forks","keys_url":"https://api.github.com/repos/scls19fr/pandas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scls19fr/pandas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scls19fr/pandas/teams","hooks_url":"https://api.github.com/repos/scls19fr/pandas/hooks","issue_events_url":"https://api.github.com/repos/scls19fr/pandas/issues/events{/number}","events_url":"https://api.github.com/repos/scls19fr/pandas/events","assignees_url":"https://api.github.com/repos/scls19fr/pandas/assignees{/user}","branches_url":"https://api.github.com/repos/scls19fr/pandas/branches{/branch}","tags_url":"https://api.github.com/repos/scls19fr/pandas/tags","blobs_url":"https://api.github.com/repos/scls19fr/pandas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scls19fr/pandas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scls19fr/pandas/git/refs{/sha}","trees_url":"https://api.github.com/repos/scls19fr/pandas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scls19fr/pandas/statuses/{sha}","languages_url":"https://api.github.com/repos/scls19fr/pandas/languages","stargazers_url":"https://api.github.com/repos/scls19fr/pandas/stargazers","contributors_url":"https://api.github.com/repos/scls19fr/pandas/contributors","subscribers_url":"https://api.github.com/repos/scls19fr/pandas/subscribers","subscription_url":"https://api.github.com/repos/scls19fr/pandas/subscription","commits_url":"https://api.github.com/repos/scls19fr/pandas/commits{/sha}","git_commits_url":"https://api.github.com/repos/scls19fr/pandas/git/commits{/sha}","comments_url":"https://api.github.com/repos/scls19fr/pandas/comments{/number}","issue_comment_url":"https://api.github.com/repos/scls19fr/pandas/issues/comments{/number}","contents_url":"https://api.github.com/repos/scls19fr/pandas/contents/{+path}","compare_url":"https://api.github.com/repos/scls19fr/pandas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scls19fr/pandas/merges","archive_url":"https://api.github.com/repos/scls19fr/pandas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scls19fr/pandas/downloads","issues_url":"https://api.github.com/repos/scls19fr/pandas/issues{/number}","pulls_url":"https://api.github.com/repos/scls19fr/pandas/pulls{/number}","milestones_url":"https://api.github.com/repos/scls19fr/pandas/milestones{/number}","notifications_url":"https://api.github.com/repos/scls19fr/pandas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scls19fr/pandas/labels{/name}","releases_url":"https://api.github.com/repos/scls19fr/pandas/releases{/id}","deployments_url":"https://api.github.com/repos/scls19fr/pandas/deployments","created_at":"2016-12-01T06:29:57Z","updated_at":"2016-12-01T06:30:03Z","pushed_at":"2016-12-01T11:33:28Z","git_url":"git://github.com/scls19fr/pandas.git","ssh_url":"git@github.com:scls19fr/pandas.git","clone_url":"https://github.com/scls19fr/pandas.git","svn_url":"https://github.com/scls19fr/pandas","homepage":"http://pandas.pydata.org","size":83243,"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":"pandas-dev:master","ref":"master","sha":"1b0333b70363bf1d0c4cd17f57b29aa2a192acc9","user":{"login":"pandas-dev","id":21206976,"avatar_url":"https://avatars.githubusercontent.com/u/21206976?v=3","gravatar_id":"","url":"https://api.github.com/users/pandas-dev","html_url":"https://github.com/pandas-dev","followers_url":"https://api.github.com/users/pandas-dev/followers","following_url":"https://api.github.com/users/pandas-dev/following{/other_user}","gists_url":"https://api.github.com/users/pandas-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/pandas-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pandas-dev/subscriptions","organizations_url":"https://api.github.com/users/pandas-dev/orgs","repos_url":"https://api.github.com/users/pandas-dev/repos","events_url":"https://api.github.com/users/pandas-dev/events{/privacy}","received_events_url":"https://api.github.com/users/pandas-dev/received_events","type":"Organization","site_admin":false},"repo":{"id":858127,"name":"pandas","full_name":"pandas-dev/pandas","owner":{"login":"pandas-dev","id":21206976,"avatar_url":"https://avatars.githubusercontent.com/u/21206976?v=3","gravatar_id":"","url":"https://api.github.com/users/pandas-dev","html_url":"https://github.com/pandas-dev","followers_url":"https://api.github.com/users/pandas-dev/followers","following_url":"https://api.github.com/users/pandas-dev/following{/other_user}","gists_url":"https://api.github.com/users/pandas-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/pandas-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pandas-dev/subscriptions","organizations_url":"https://api.github.com/users/pandas-dev/orgs","repos_url":"https://api.github.com/users/pandas-dev/repos","events_url":"https://api.github.com/users/pandas-dev/events{/privacy}","received_events_url":"https://api.github.com/users/pandas-dev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pandas-dev/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/pandas-dev/pandas","forks_url":"https://api.github.com/repos/pandas-dev/pandas/forks","keys_url":"https://api.github.com/repos/pandas-dev/pandas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pandas-dev/pandas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pandas-dev/pandas/teams","hooks_url":"https://api.github.com/repos/pandas-dev/pandas/hooks","issue_events_url":"https://api.github.com/repos/pandas-dev/pandas/issues/events{/number}","events_url":"https://api.github.com/repos/pandas-dev/pandas/events","assignees_url":"https://api.github.com/repos/pandas-dev/pandas/assignees{/user}","branches_url":"https://api.github.com/repos/pandas-dev/pandas/branches{/branch}","tags_url":"https://api.github.com/repos/pandas-dev/pandas/tags","blobs_url":"https://api.github.com/repos/pandas-dev/pandas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pandas-dev/pandas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pandas-dev/pandas/git/refs{/sha}","trees_url":"https://api.github.com/repos/pandas-dev/pandas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pandas-dev/pandas/statuses/{sha}","languages_url":"https://api.github.com/repos/pandas-dev/pandas/languages","stargazers_url":"https://api.github.com/repos/pandas-dev/pandas/stargazers","contributors_url":"https://api.github.com/repos/pandas-dev/pandas/contributors","subscribers_url":"https://api.github.com/repos/pandas-dev/pandas/subscribers","subscription_url":"https://api.github.com/repos/pandas-dev/pandas/subscription","commits_url":"https://api.github.com/repos/pandas-dev/pandas/commits{/sha}","git_commits_url":"https://api.github.com/repos/pandas-dev/pandas/git/commits{/sha}","comments_url":"https://api.github.com/repos/pandas-dev/pandas/comments{/number}","issue_comment_url":"https://api.github.com/repos/pandas-dev/pandas/issues/comments{/number}","contents_url":"https://api.github.com/repos/pandas-dev/pandas/contents/{+path}","compare_url":"https://api.github.com/repos/pandas-dev/pandas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pandas-dev/pandas/merges","archive_url":"https://api.github.com/repos/pandas-dev/pandas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pandas-dev/pandas/downloads","issues_url":"https://api.github.com/repos/pandas-dev/pandas/issues{/number}","pulls_url":"https://api.github.com/repos/pandas-dev/pandas/pulls{/number}","milestones_url":"https://api.github.com/repos/pandas-dev/pandas/milestones{/number}","notifications_url":"https://api.github.com/repos/pandas-dev/pandas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pandas-dev/pandas/labels{/name}","releases_url":"https://api.github.com/repos/pandas-dev/pandas/releases{/id}","deployments_url":"https://api.github.com/repos/pandas-dev/pandas/deployments","created_at":"2010-08-24T01:37:33Z","updated_at":"2016-12-01T11:07:57Z","pushed_at":"2016-12-01T11:33:33Z","git_url":"git://github.com/pandas-dev/pandas.git","ssh_url":"git@github.com:pandas-dev/pandas.git","clone_url":"https://github.com/pandas-dev/pandas.git","svn_url":"https://github.com/pandas-dev/pandas","homepage":"http://pandas.pydata.org","size":155496,"stargazers_count":7517,"watchers_count":7517,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3127,"mirror_url":null,"open_issues_count":1881,"forks":3127,"open_issues":1881,"watchers":7517,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pandas-dev/pandas/pulls/14780"},"html":{"href":"https://github.com/pandas-dev/pandas/pull/14780"},"issue":{"href":"https://api.github.com/repos/pandas-dev/pandas/issues/14780"},"comments":{"href":"https://api.github.com/repos/pandas-dev/pandas/issues/14780/comments"},"review_comments":{"href":"https://api.github.com/repos/pandas-dev/pandas/pulls/14780/comments"},"review_comment":{"href":"https://api.github.com/repos/pandas-dev/pandas/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pandas-dev/pandas/pulls/14780/commits"},"statuses":{"href":"https://api.github.com/repos/pandas-dev/pandas/statuses/8525253c5f249db95413e0bc1f8c11dff999b086"}}}}
{"actor":{"display_login":"jreback"}}