{"action":"created","issue":{"url":"https://api.github.com/repos/altair-viz/altair-viz.github.io/issues/2","repository_url":"https://api.github.com/repos/altair-viz/altair-viz.github.io","labels_url":"https://api.github.com/repos/altair-viz/altair-viz.github.io/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/altair-viz/altair-viz.github.io/issues/2/comments","events_url":"https://api.github.com/repos/altair-viz/altair-viz.github.io/issues/2/events","html_url":"https://github.com/altair-viz/altair-viz.github.io/pull/2","id":186474846,"number":2,"title":"`:Q` is unnecessary","user":{"login":"muxuezi","id":5152516,"avatar_url":"https://avatars.githubusercontent.com/u/5152516?v=3","gravatar_id":"","url":"https://api.github.com/users/muxuezi","html_url":"https://github.com/muxuezi","followers_url":"https://api.github.com/users/muxuezi/followers","following_url":"https://api.github.com/users/muxuezi/following{/other_user}","gists_url":"https://api.github.com/users/muxuezi/gists{/gist_id}","starred_url":"https://api.github.com/users/muxuezi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muxuezi/subscriptions","organizations_url":"https://api.github.com/users/muxuezi/orgs","repos_url":"https://api.github.com/users/muxuezi/repos","events_url":"https://api.github.com/users/muxuezi/events{/privacy}","received_events_url":"https://api.github.com/users/muxuezi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-01T07:29:59Z","updated_at":"2016-11-01T14:03:05Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/altair-viz/altair-viz.github.io/pulls/2","html_url":"https://github.com/altair-viz/altair-viz.github.io/pull/2","diff_url":"https://github.com/altair-viz/altair-viz.github.io/pull/2.diff","patch_url":"https://github.com/altair-viz/altair-viz.github.io/pull/2.patch"},"body":"There was nothing when we test `'mean(temp_range):Q'` in Jupyter Notebook. It's ok when we delete `:Q`.\r\n\r\nChange the code\r\n\r\n```python\r\nChart(df).mark_line().encode(\r\n        X('date:T', timeUnit='month'),\r\n        y='mean(temp_range):Q'\r\n    ).transform_data(\r\n        calculate=[temp_range],\r\n    )\r\n```\r\n\r\nto\r\n\r\n```python\r\nChart(df).mark_line().encode(\r\n        X('date:T', timeUnit='month'),\r\n        y='mean(temp_range)'\r\n    ).transform_data(\r\n        calculate=[temp_range],\r\n    )\r\n```"},"comment":{"url":"https://api.github.com/repos/altair-viz/altair-viz.github.io/issues/comments/257574025","html_url":"https://github.com/altair-viz/altair-viz.github.io/pull/2#issuecomment-257574025","issue_url":"https://api.github.com/repos/altair-viz/altair-viz.github.io/issues/2","id":257574025,"user":{"login":"jakevdp","id":781659,"avatar_url":"https://avatars.githubusercontent.com/u/781659?v=3","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":"2016-11-01T14:03:04Z","updated_at":"2016-11-01T14:03:04Z","body":"It's not necessary when the data is supplied as a dataframe, but it is necessary when the data is supplied by URL or another means; this is described in the [getting started tutorial](https://altair-viz.github.io/tutorials/getting-started.html). For that reason, I'd prefer to leave it in."}}
{"actor":{"display_login":"jakevdp"}}