{"action":"created","comment":{"url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/pulls/comments/241589055","pull_request_review_id":184903067,"id":241589055,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MTU4OTA1NQ==","diff_hunk":"@@ -80,9 +80,14 @@ def df(self):\n             }\n             df.columns = [alias[c] for c in df.columns]\n             df.set_index('time', inplace=True)\n-            df.index = pd.to_datetime(\n-                df.index * 1e9, utc=True,\n-            ).tz_convert(NY)\n+            if not df.empty:","path":"alpaca_trade_api/entity.py","position":7,"original_position":7,"commit_id":"a7a8c662bd0e73dbe0f7c6033a73ed275e39f146","original_commit_id":"a7a8c662bd0e73dbe0f7c6033a73ed275e39f146","user":{"login":"umitanuki","id":33334,"node_id":"MDQ6VXNlcjMzMzM0","avatar_url":"https://avatars3.githubusercontent.com/u/33334?v=4","gravatar_id":"","url":"https://api.github.com/users/umitanuki","html_url":"https://github.com/umitanuki","followers_url":"https://api.github.com/users/umitanuki/followers","following_url":"https://api.github.com/users/umitanuki/following{/other_user}","gists_url":"https://api.github.com/users/umitanuki/gists{/gist_id}","starred_url":"https://api.github.com/users/umitanuki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umitanuki/subscriptions","organizations_url":"https://api.github.com/users/umitanuki/orgs","repos_url":"https://api.github.com/users/umitanuki/repos","events_url":"https://api.github.com/users/umitanuki/events{/privacy}","received_events_url":"https://api.github.com/users/umitanuki/received_events","type":"User","site_admin":false},"body":"What fails if it's empty?","created_at":"2018-12-13T22:43:15Z","updated_at":"2018-12-13T22:43:15Z","html_url":"https://github.com/alpacahq/alpaca-trade-api-python/pull/45#discussion_r241589055","pull_request_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/pulls/45","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/pulls/comments/241589055"},"html":{"href":"https://github.com/alpacahq/alpaca-trade-api-python/pull/45#discussion_r241589055"},"pull_request":{"href":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/pulls/45"}}},"pull_request":{"url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/pulls/45","id":238538145,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM4NTM4MTQ1","html_url":"https://github.com/alpacahq/alpaca-trade-api-python/pull/45","diff_url":"https://github.com/alpacahq/alpaca-trade-api-python/pull/45.diff","patch_url":"https://github.com/alpacahq/alpaca-trade-api-python/pull/45.patch","issue_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/issues/45","number":45,"state":"open","locked":false,"title":"Fix dataframe conversion when Bars data is empty","user":{"login":"ttt733","id":6812582,"node_id":"MDQ6VXNlcjY4MTI1ODI=","avatar_url":"https://avatars0.githubusercontent.com/u/6812582?v=4","gravatar_id":"","url":"https://api.github.com/users/ttt733","html_url":"https://github.com/ttt733","followers_url":"https://api.github.com/users/ttt733/followers","following_url":"https://api.github.com/users/ttt733/following{/other_user}","gists_url":"https://api.github.com/users/ttt733/gists{/gist_id}","starred_url":"https://api.github.com/users/ttt733/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttt733/subscriptions","organizations_url":"https://api.github.com/users/ttt733/orgs","repos_url":"https://api.github.com/users/ttt733/repos","events_url":"https://api.github.com/users/ttt733/events{/privacy}","received_events_url":"https://api.github.com/users/ttt733/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-12-13T21:28:50Z","updated_at":"2018-12-13T22:43:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"60bb3aab375d9723b9a9e8e55b93afc79ddb5dcd","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/pulls/45/commits","review_comments_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/pulls/45/comments","review_comment_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/issues/45/comments","statuses_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/statuses/a7a8c662bd0e73dbe0f7c6033a73ed275e39f146","head":{"label":"alpacahq:updateDataframeConversion","ref":"updateDataframeConversion","sha":"a7a8c662bd0e73dbe0f7c6033a73ed275e39f146","user":{"login":"alpacahq","id":30398729,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwMzk4NzI5","avatar_url":"https://avatars1.githubusercontent.com/u/30398729?v=4","gravatar_id":"","url":"https://api.github.com/users/alpacahq","html_url":"https://github.com/alpacahq","followers_url":"https://api.github.com/users/alpacahq/followers","following_url":"https://api.github.com/users/alpacahq/following{/other_user}","gists_url":"https://api.github.com/users/alpacahq/gists{/gist_id}","starred_url":"https://api.github.com/users/alpacahq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alpacahq/subscriptions","organizations_url":"https://api.github.com/users/alpacahq/orgs","repos_url":"https://api.github.com/users/alpacahq/repos","events_url":"https://api.github.com/users/alpacahq/events{/privacy}","received_events_url":"https://api.github.com/users/alpacahq/received_events","type":"Organization","site_admin":false},"repo":{"id":124611126,"node_id":"MDEwOlJlcG9zaXRvcnkxMjQ2MTExMjY=","name":"alpaca-trade-api-python","full_name":"alpacahq/alpaca-trade-api-python","private":false,"owner":{"login":"alpacahq","id":30398729,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwMzk4NzI5","avatar_url":"https://avatars1.githubusercontent.com/u/30398729?v=4","gravatar_id":"","url":"https://api.github.com/users/alpacahq","html_url":"https://github.com/alpacahq","followers_url":"https://api.github.com/users/alpacahq/followers","following_url":"https://api.github.com/users/alpacahq/following{/other_user}","gists_url":"https://api.github.com/users/alpacahq/gists{/gist_id}","starred_url":"https://api.github.com/users/alpacahq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alpacahq/subscriptions","organizations_url":"https://api.github.com/users/alpacahq/orgs","repos_url":"https://api.github.com/users/alpacahq/repos","events_url":"https://api.github.com/users/alpacahq/events{/privacy}","received_events_url":"https://api.github.com/users/alpacahq/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/alpacahq/alpaca-trade-api-python","description":"Python client for Alpaca's trade API","fork":false,"url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python","forks_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/forks","keys_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/teams","hooks_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/hooks","issue_events_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/issues/events{/number}","events_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/events","assignees_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/assignees{/user}","branches_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/branches{/branch}","tags_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/tags","blobs_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/statuses/{sha}","languages_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/languages","stargazers_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/stargazers","contributors_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/contributors","subscribers_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/subscribers","subscription_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/subscription","commits_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/contents/{+path}","compare_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/merges","archive_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/downloads","issues_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/issues{/number}","pulls_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/pulls{/number}","milestones_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/milestones{/number}","notifications_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/labels{/name}","releases_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/releases{/id}","deployments_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/deployments","created_at":"2018-03-10T01:29:06Z","updated_at":"2018-12-13T21:55:15Z","pushed_at":"2018-12-13T21:28:50Z","git_url":"git://github.com/alpacahq/alpaca-trade-api-python.git","ssh_url":"git@github.com:alpacahq/alpaca-trade-api-python.git","clone_url":"https://github.com/alpacahq/alpaca-trade-api-python.git","svn_url":"https://github.com/alpacahq/alpaca-trade-api-python","homepage":"https://pypi.org/project/alpaca-trade-api/","size":142,"stargazers_count":45,"watchers_count":45,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":15,"open_issues":8,"watchers":45,"default_branch":"master"}},"base":{"label":"alpacahq:master","ref":"master","sha":"f2ac2451e64bbc37d3af46a019bdeb8ec525b908","user":{"login":"alpacahq","id":30398729,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwMzk4NzI5","avatar_url":"https://avatars1.githubusercontent.com/u/30398729?v=4","gravatar_id":"","url":"https://api.github.com/users/alpacahq","html_url":"https://github.com/alpacahq","followers_url":"https://api.github.com/users/alpacahq/followers","following_url":"https://api.github.com/users/alpacahq/following{/other_user}","gists_url":"https://api.github.com/users/alpacahq/gists{/gist_id}","starred_url":"https://api.github.com/users/alpacahq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alpacahq/subscriptions","organizations_url":"https://api.github.com/users/alpacahq/orgs","repos_url":"https://api.github.com/users/alpacahq/repos","events_url":"https://api.github.com/users/alpacahq/events{/privacy}","received_events_url":"https://api.github.com/users/alpacahq/received_events","type":"Organization","site_admin":false},"repo":{"id":124611126,"node_id":"MDEwOlJlcG9zaXRvcnkxMjQ2MTExMjY=","name":"alpaca-trade-api-python","full_name":"alpacahq/alpaca-trade-api-python","private":false,"owner":{"login":"alpacahq","id":30398729,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwMzk4NzI5","avatar_url":"https://avatars1.githubusercontent.com/u/30398729?v=4","gravatar_id":"","url":"https://api.github.com/users/alpacahq","html_url":"https://github.com/alpacahq","followers_url":"https://api.github.com/users/alpacahq/followers","following_url":"https://api.github.com/users/alpacahq/following{/other_user}","gists_url":"https://api.github.com/users/alpacahq/gists{/gist_id}","starred_url":"https://api.github.com/users/alpacahq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alpacahq/subscriptions","organizations_url":"https://api.github.com/users/alpacahq/orgs","repos_url":"https://api.github.com/users/alpacahq/repos","events_url":"https://api.github.com/users/alpacahq/events{/privacy}","received_events_url":"https://api.github.com/users/alpacahq/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/alpacahq/alpaca-trade-api-python","description":"Python client for Alpaca's trade API","fork":false,"url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python","forks_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/forks","keys_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/teams","hooks_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/hooks","issue_events_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/issues/events{/number}","events_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/events","assignees_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/assignees{/user}","branches_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/branches{/branch}","tags_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/tags","blobs_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/statuses/{sha}","languages_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/languages","stargazers_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/stargazers","contributors_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/contributors","subscribers_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/subscribers","subscription_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/subscription","commits_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/contents/{+path}","compare_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/merges","archive_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/downloads","issues_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/issues{/number}","pulls_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/pulls{/number}","milestones_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/milestones{/number}","notifications_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/labels{/name}","releases_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/releases{/id}","deployments_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/deployments","created_at":"2018-03-10T01:29:06Z","updated_at":"2018-12-13T21:55:15Z","pushed_at":"2018-12-13T21:28:50Z","git_url":"git://github.com/alpacahq/alpaca-trade-api-python.git","ssh_url":"git@github.com:alpacahq/alpaca-trade-api-python.git","clone_url":"https://github.com/alpacahq/alpaca-trade-api-python.git","svn_url":"https://github.com/alpacahq/alpaca-trade-api-python","homepage":"https://pypi.org/project/alpaca-trade-api/","size":142,"stargazers_count":45,"watchers_count":45,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":15,"open_issues":8,"watchers":45,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/pulls/45"},"html":{"href":"https://github.com/alpacahq/alpaca-trade-api-python/pull/45"},"issue":{"href":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/issues/45"},"comments":{"href":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/issues/45/comments"},"review_comments":{"href":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/pulls/45/comments"},"review_comment":{"href":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/pulls/45/commits"},"statuses":{"href":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/statuses/a7a8c662bd0e73dbe0f7c6033a73ed275e39f146"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"umitanuki"}}