{"action":"created","issue":{"url":"https://api.github.com/repos/altair-viz/altair/issues/636","repository_url":"https://api.github.com/repos/altair-viz/altair","labels_url":"https://api.github.com/repos/altair-viz/altair/issues/636/labels{/name}","comments_url":"https://api.github.com/repos/altair-viz/altair/issues/636/comments","events_url":"https://api.github.com/repos/altair-viz/altair/issues/636/events","html_url":"https://github.com/altair-viz/altair/issues/636","id":307791453,"number":636,"title":"Why not make the expressions available as attributes on the top level import?","user":{"login":"palewire","id":9993,"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},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-03-22T19:53:06Z","updated_at":"2018-03-24T21:30:32Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"There might be a good reason for this I'm ignorant of, but wouldn't it be nicer if you could do this:\r\n\r\n```python\r\nimport altair as alt\r\nprint(alt.datum) # <-- Just dummy code to illustrate accessing datum for use\r\n```\r\nInstead of this:\r\n\r\n```python\r\nimport altair as alt\r\nfrom altair.expr import datum\r\nprint(datum)\r\n```\r\n\r\nWhy not structure the expressions like `datum` in a way that they are available to the `alt` object without requiring a second import? "},"comment":{"url":"https://api.github.com/repos/altair-viz/altair/issues/comments/375926283","html_url":"https://github.com/altair-viz/altair/issues/636#issuecomment-375926283","issue_url":"https://api.github.com/repos/altair-viz/altair/issues/636","id":375926283,"user":{"login":"jakevdp","id":781659,"avatar_url":"https://avatars0.githubusercontent.com/u/781659?v=4","gravatar_id":"","url":"https://api.github.com/users/jakevdp","html_url":"https://github.com/jakevdp","followers_url":"https://api.github.com/users/jakevdp/followers","following_url":"https://api.github.com/users/jakevdp/following{/other_user}","gists_url":"https://api.github.com/users/jakevdp/gists{/gist_id}","starred_url":"https://api.github.com/users/jakevdp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakevdp/subscriptions","organizations_url":"https://api.github.com/users/jakevdp/orgs","repos_url":"https://api.github.com/users/jakevdp/repos","events_url":"https://api.github.com/users/jakevdp/events{/privacy}","received_events_url":"https://api.github.com/users/jakevdp/received_events","type":"User","site_admin":false},"created_at":"2018-03-24T21:30:32Z","updated_at":"2018-03-24T21:30:32Z","author_association":"OWNER","body":"The reason it should not be symmetric with the ``data`` that you pass to chart is that you're not doing operations on the entire data! You'd doing operations on one element at a time within the data, for which \"datum\" seems a reasonable choice of nomenclature."}}
{"actor":{"display_login":"jakevdp"}}