{"action":"closed","number":1163,"pull_request":{"url":"https://api.github.com/repos/altair-viz/altair/pulls/1163","id":222672262,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIyNjcyMjYy","html_url":"https://github.com/altair-viz/altair/pull/1163","diff_url":"https://github.com/altair-viz/altair/pull/1163.diff","patch_url":"https://github.com/altair-viz/altair/pull/1163.patch","issue_url":"https://api.github.com/repos/altair-viz/altair/issues/1163","number":1163,"state":"closed","locked":false,"title":"DOC: Removed pandas and numpy imports from examples","user":{"login":"palewire","id":9993,"node_id":"MDQ6VXNlcjk5OTM=","avatar_url":"https://avatars1.githubusercontent.com/u/9993?v=4","gravatar_id":"","url":"https://api.github.com/users/palewire","html_url":"https://github.com/palewire","followers_url":"https://api.github.com/users/palewire/followers","following_url":"https://api.github.com/users/palewire/following{/other_user}","gists_url":"https://api.github.com/users/palewire/gists{/gist_id}","starred_url":"https://api.github.com/users/palewire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/palewire/subscriptions","organizations_url":"https://api.github.com/users/palewire/orgs","repos_url":"https://api.github.com/users/palewire/repos","events_url":"https://api.github.com/users/palewire/events{/privacy}","received_events_url":"https://api.github.com/users/palewire/received_events","type":"User","site_admin":false},"body":"A number of examples are cluttered by pandas and numpy imports at the top. I have removed them. In their place you will find references to the libraries via the `alt` variable. For instance, this:\r\n\r\n```python\r\nimport pandas as pd\r\n\r\nsource = pd.DataFrame([whatever])\r\n```\r\n\r\nHas been replaced by:\r\n\r\n```python\r\nsource = alt.pd([whatever])\r\n```\r\n\r\nI propose this change because it seems to me that pandas and numpy usage in the examples is primarily to generate test data. For that reason, including pandas code only distracts the user from the core purpose of the example, demonstrating Altair configuration options. Therefore, the less we see of it the better. ","created_at":"2018-10-13T19:59:26Z","updated_at":"2018-10-15T17:07:20Z","closed_at":"2018-10-15T17:07:19Z","merged_at":null,"merge_commit_sha":"78a28658ded202af690e738df51d4fbc2c0b7bd3","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/altair-viz/altair/pulls/1163/commits","review_comments_url":"https://api.github.com/repos/altair-viz/altair/pulls/1163/comments","review_comment_url":"https://api.github.com/repos/altair-viz/altair/pulls/comments{/number}","comments_url":"https://api.github.com/repos/altair-viz/altair/issues/1163/comments","statuses_url":"https://api.github.com/repos/altair-viz/altair/statuses/cd10b8c078d15dcbd164143dcd156778a322714b","head":{"label":"datadesk:pandas-imports","ref":"pandas-imports","sha":"cd10b8c078d15dcbd164143dcd156778a322714b","user":{"login":"datadesk","id":320671,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyMDY3MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/320671?v=4","gravatar_id":"","url":"https://api.github.com/users/datadesk","html_url":"https://github.com/datadesk","followers_url":"https://api.github.com/users/datadesk/followers","following_url":"https://api.github.com/users/datadesk/following{/other_user}","gists_url":"https://api.github.com/users/datadesk/gists{/gist_id}","starred_url":"https://api.github.com/users/datadesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datadesk/subscriptions","organizations_url":"https://api.github.com/users/datadesk/orgs","repos_url":"https://api.github.com/users/datadesk/repos","events_url":"https://api.github.com/users/datadesk/events{/privacy}","received_events_url":"https://api.github.com/users/datadesk/received_events","type":"Organization","site_admin":false},"repo":{"id":152899347,"node_id":"MDEwOlJlcG9zaXRvcnkxNTI4OTkzNDc=","name":"altair","full_name":"datadesk/altair","private":false,"owner":{"login":"datadesk","id":320671,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyMDY3MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/320671?v=4","gravatar_id":"","url":"https://api.github.com/users/datadesk","html_url":"https://github.com/datadesk","followers_url":"https://api.github.com/users/datadesk/followers","following_url":"https://api.github.com/users/datadesk/following{/other_user}","gists_url":"https://api.github.com/users/datadesk/gists{/gist_id}","starred_url":"https://api.github.com/users/datadesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datadesk/subscriptions","organizations_url":"https://api.github.com/users/datadesk/orgs","repos_url":"https://api.github.com/users/datadesk/repos","events_url":"https://api.github.com/users/datadesk/events{/privacy}","received_events_url":"https://api.github.com/users/datadesk/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/datadesk/altair","description":"Declarative statistical visualization library for Python","fork":true,"url":"https://api.github.com/repos/datadesk/altair","forks_url":"https://api.github.com/repos/datadesk/altair/forks","keys_url":"https://api.github.com/repos/datadesk/altair/keys{/key_id}","collaborators_url":"https://api.github.com/repos/datadesk/altair/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/datadesk/altair/teams","hooks_url":"https://api.github.com/repos/datadesk/altair/hooks","issue_events_url":"https://api.github.com/repos/datadesk/altair/issues/events{/number}","events_url":"https://api.github.com/repos/datadesk/altair/events","assignees_url":"https://api.github.com/repos/datadesk/altair/assignees{/user}","branches_url":"https://api.github.com/repos/datadesk/altair/branches{/branch}","tags_url":"https://api.github.com/repos/datadesk/altair/tags","blobs_url":"https://api.github.com/repos/datadesk/altair/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/datadesk/altair/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/datadesk/altair/git/refs{/sha}","trees_url":"https://api.github.com/repos/datadesk/altair/git/trees{/sha}","statuses_url":"https://api.github.com/repos/datadesk/altair/statuses/{sha}","languages_url":"https://api.github.com/repos/datadesk/altair/languages","stargazers_url":"https://api.github.com/repos/datadesk/altair/stargazers","contributors_url":"https://api.github.com/repos/datadesk/altair/contributors","subscribers_url":"https://api.github.com/repos/datadesk/altair/subscribers","subscription_url":"https://api.github.com/repos/datadesk/altair/subscription","commits_url":"https://api.github.com/repos/datadesk/altair/commits{/sha}","git_commits_url":"https://api.github.com/repos/datadesk/altair/git/commits{/sha}","comments_url":"https://api.github.com/repos/datadesk/altair/comments{/number}","issue_comment_url":"https://api.github.com/repos/datadesk/altair/issues/comments{/number}","contents_url":"https://api.github.com/repos/datadesk/altair/contents/{+path}","compare_url":"https://api.github.com/repos/datadesk/altair/compare/{base}...{head}","merges_url":"https://api.github.com/repos/datadesk/altair/merges","archive_url":"https://api.github.com/repos/datadesk/altair/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/datadesk/altair/downloads","issues_url":"https://api.github.com/repos/datadesk/altair/issues{/number}","pulls_url":"https://api.github.com/repos/datadesk/altair/pulls{/number}","milestones_url":"https://api.github.com/repos/datadesk/altair/milestones{/number}","notifications_url":"https://api.github.com/repos/datadesk/altair/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/datadesk/altair/labels{/name}","releases_url":"https://api.github.com/repos/datadesk/altair/releases{/id}","deployments_url":"https://api.github.com/repos/datadesk/altair/deployments","created_at":"2018-10-13T17:54:55Z","updated_at":"2018-10-13T19:56:12Z","pushed_at":"2018-10-14T00:27:32Z","git_url":"git://github.com/datadesk/altair.git","ssh_url":"git@github.com:datadesk/altair.git","clone_url":"https://github.com/datadesk/altair.git","svn_url":"https://github.com/datadesk/altair","homepage":"https://altair-viz.github.io/","size":21326,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"altair-viz:master","ref":"master","sha":"8fa8f9575406df30a850fa3befb805b3d56af96b","user":{"login":"altair-viz","id":22396732,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMzk2NzMy","avatar_url":"https://avatars1.githubusercontent.com/u/22396732?v=4","gravatar_id":"","url":"https://api.github.com/users/altair-viz","html_url":"https://github.com/altair-viz","followers_url":"https://api.github.com/users/altair-viz/followers","following_url":"https://api.github.com/users/altair-viz/following{/other_user}","gists_url":"https://api.github.com/users/altair-viz/gists{/gist_id}","starred_url":"https://api.github.com/users/altair-viz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/altair-viz/subscriptions","organizations_url":"https://api.github.com/users/altair-viz/orgs","repos_url":"https://api.github.com/users/altair-viz/repos","events_url":"https://api.github.com/users/altair-viz/events{/privacy}","received_events_url":"https://api.github.com/users/altair-viz/received_events","type":"Organization","site_admin":false},"repo":{"id":42757577,"node_id":"MDEwOlJlcG9zaXRvcnk0Mjc1NzU3Nw==","name":"altair","full_name":"altair-viz/altair","private":false,"owner":{"login":"altair-viz","id":22396732,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMzk2NzMy","avatar_url":"https://avatars1.githubusercontent.com/u/22396732?v=4","gravatar_id":"","url":"https://api.github.com/users/altair-viz","html_url":"https://github.com/altair-viz","followers_url":"https://api.github.com/users/altair-viz/followers","following_url":"https://api.github.com/users/altair-viz/following{/other_user}","gists_url":"https://api.github.com/users/altair-viz/gists{/gist_id}","starred_url":"https://api.github.com/users/altair-viz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/altair-viz/subscriptions","organizations_url":"https://api.github.com/users/altair-viz/orgs","repos_url":"https://api.github.com/users/altair-viz/repos","events_url":"https://api.github.com/users/altair-viz/events{/privacy}","received_events_url":"https://api.github.com/users/altair-viz/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/altair-viz/altair","description":"Declarative statistical visualization library for Python","fork":false,"url":"https://api.github.com/repos/altair-viz/altair","forks_url":"https://api.github.com/repos/altair-viz/altair/forks","keys_url":"https://api.github.com/repos/altair-viz/altair/keys{/key_id}","collaborators_url":"https://api.github.com/repos/altair-viz/altair/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/altair-viz/altair/teams","hooks_url":"https://api.github.com/repos/altair-viz/altair/hooks","issue_events_url":"https://api.github.com/repos/altair-viz/altair/issues/events{/number}","events_url":"https://api.github.com/repos/altair-viz/altair/events","assignees_url":"https://api.github.com/repos/altair-viz/altair/assignees{/user}","branches_url":"https://api.github.com/repos/altair-viz/altair/branches{/branch}","tags_url":"https://api.github.com/repos/altair-viz/altair/tags","blobs_url":"https://api.github.com/repos/altair-viz/altair/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/altair-viz/altair/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/altair-viz/altair/git/refs{/sha}","trees_url":"https://api.github.com/repos/altair-viz/altair/git/trees{/sha}","statuses_url":"https://api.github.com/repos/altair-viz/altair/statuses/{sha}","languages_url":"https://api.github.com/repos/altair-viz/altair/languages","stargazers_url":"https://api.github.com/repos/altair-viz/altair/stargazers","contributors_url":"https://api.github.com/repos/altair-viz/altair/contributors","subscribers_url":"https://api.github.com/repos/altair-viz/altair/subscribers","subscription_url":"https://api.github.com/repos/altair-viz/altair/subscription","commits_url":"https://api.github.com/repos/altair-viz/altair/commits{/sha}","git_commits_url":"https://api.github.com/repos/altair-viz/altair/git/commits{/sha}","comments_url":"https://api.github.com/repos/altair-viz/altair/comments{/number}","issue_comment_url":"https://api.github.com/repos/altair-viz/altair/issues/comments{/number}","contents_url":"https://api.github.com/repos/altair-viz/altair/contents/{+path}","compare_url":"https://api.github.com/repos/altair-viz/altair/compare/{base}...{head}","merges_url":"https://api.github.com/repos/altair-viz/altair/merges","archive_url":"https://api.github.com/repos/altair-viz/altair/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/altair-viz/altair/downloads","issues_url":"https://api.github.com/repos/altair-viz/altair/issues{/number}","pulls_url":"https://api.github.com/repos/altair-viz/altair/pulls{/number}","milestones_url":"https://api.github.com/repos/altair-viz/altair/milestones{/number}","notifications_url":"https://api.github.com/repos/altair-viz/altair/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/altair-viz/altair/labels{/name}","releases_url":"https://api.github.com/repos/altair-viz/altair/releases{/id}","deployments_url":"https://api.github.com/repos/altair-viz/altair/deployments","created_at":"2015-09-19T03:14:04Z","updated_at":"2018-10-15T15:57:41Z","pushed_at":"2018-10-15T15:43:26Z","git_url":"git://github.com/altair-viz/altair.git","ssh_url":"git@github.com:altair-viz/altair.git","clone_url":"https://github.com/altair-viz/altair.git","svn_url":"https://github.com/altair-viz/altair","homepage":"https://altair-viz.github.io/","size":21502,"stargazers_count":2839,"watchers_count":2839,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":280,"mirror_url":null,"archived":false,"open_issues_count":152,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":280,"open_issues":152,"watchers":2839,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/altair-viz/altair/pulls/1163"},"html":{"href":"https://github.com/altair-viz/altair/pull/1163"},"issue":{"href":"https://api.github.com/repos/altair-viz/altair/issues/1163"},"comments":{"href":"https://api.github.com/repos/altair-viz/altair/issues/1163/comments"},"review_comments":{"href":"https://api.github.com/repos/altair-viz/altair/pulls/1163/comments"},"review_comment":{"href":"https://api.github.com/repos/altair-viz/altair/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/altair-viz/altair/pulls/1163/commits"},"statuses":{"href":"https://api.github.com/repos/altair-viz/altair/statuses/cd10b8c078d15dcbd164143dcd156778a322714b"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":true,"rebaseable":true,"mergeable_state":"clean","merged_by":null,"comments":2,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":60,"deletions":100,"changed_files":22}}
{"actor":{"display_login":"palewire"}}