{"action":"created","issue":{"url":"https://api.github.com/repos/dsten/datascience/issues/110","labels_url":"https://api.github.com/repos/dsten/datascience/issues/110/labels{/name}","comments_url":"https://api.github.com/repos/dsten/datascience/issues/110/comments","events_url":"https://api.github.com/repos/dsten/datascience/issues/110/events","html_url":"https://github.com/dsten/datascience/pull/110","id":110136187,"number":110,"title":"Add row slicing","user":{"login":"stefanv","id":45071,"avatar_url":"https://avatars.githubusercontent.com/u/45071?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanv","html_url":"https://github.com/stefanv","followers_url":"https://api.github.com/users/stefanv/followers","following_url":"https://api.github.com/users/stefanv/following{/other_user}","gists_url":"https://api.github.com/users/stefanv/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanv/subscriptions","organizations_url":"https://api.github.com/users/stefanv/orgs","repos_url":"https://api.github.com/users/stefanv/repos","events_url":"https://api.github.com/users/stefanv/events{/privacy}","received_events_url":"https://api.github.com/users/stefanv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-07T01:38:50Z","updated_at":"2015-10-07T01:56:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dsten/datascience/pulls/110","html_url":"https://github.com/dsten/datascience/pull/110","diff_url":"https://github.com/dsten/datascience/pull/110.diff","patch_url":"https://github.com/dsten/datascience/pull/110.patch"},"body":"This lets Tables behave similar to other Python containers, such that:\r\n\r\n```\r\nIn [1]: import datascience as ds\r\n\r\nIn [2]: t = ds.Table((['a','b','c','d'], [1, 2, 3, 4]), ('names', 'counts'))\r\n\r\nIn [3]: print(t[:2])\r\nnames | counts\r\na     | 1\r\nb     | 2\r\n\r\nIn [4]: print(t[-1])\r\nnames | counts\r\nd     | 4\r\n\r\nIn [5]: print(t[1:-1])\r\nnames | counts\r\nb     | 2\r\nc     | 3\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/dsten/datascience/issues/comments/146056540","html_url":"https://github.com/dsten/datascience/pull/110#issuecomment-146056540","issue_url":"https://api.github.com/repos/dsten/datascience/issues/110","id":146056540,"user":{"login":"papajohn","id":320145,"avatar_url":"https://avatars.githubusercontent.com/u/320145?v=3","gravatar_id":"","url":"https://api.github.com/users/papajohn","html_url":"https://github.com/papajohn","followers_url":"https://api.github.com/users/papajohn/followers","following_url":"https://api.github.com/users/papajohn/following{/other_user}","gists_url":"https://api.github.com/users/papajohn/gists{/gist_id}","starred_url":"https://api.github.com/users/papajohn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/papajohn/subscriptions","organizations_url":"https://api.github.com/users/papajohn/orgs","repos_url":"https://api.github.com/users/papajohn/repos","events_url":"https://api.github.com/users/papajohn/events{/privacy}","received_events_url":"https://api.github.com/users/papajohn/received_events","type":"User","site_admin":false},"created_at":"2015-10-07T01:56:51Z","updated_at":"2015-10-07T01:56:51Z","body":"Nice suggestion, but tables are indexed by column name rather than number. You could change `t.columns()` to a special container that gives you a selected table upon slicing, rather than a list of arrays."}}