{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaStats/DataFrames.jl/issues/864","labels_url":"https://api.github.com/repos/JuliaStats/DataFrames.jl/issues/864/labels{/name}","comments_url":"https://api.github.com/repos/JuliaStats/DataFrames.jl/issues/864/comments","events_url":"https://api.github.com/repos/JuliaStats/DataFrames.jl/issues/864/events","html_url":"https://github.com/JuliaStats/DataFrames.jl/issues/864","id":103098531,"number":864,"title":"Stop printing row numbers in show(io, df)?","user":{"login":"rsmith31415","id":599274,"avatar_url":"https://avatars.githubusercontent.com/u/599274?v=3","gravatar_id":"","url":"https://api.github.com/users/rsmith31415","html_url":"https://github.com/rsmith31415","followers_url":"https://api.github.com/users/rsmith31415/followers","following_url":"https://api.github.com/users/rsmith31415/following{/other_user}","gists_url":"https://api.github.com/users/rsmith31415/gists{/gist_id}","starred_url":"https://api.github.com/users/rsmith31415/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsmith31415/subscriptions","organizations_url":"https://api.github.com/users/rsmith31415/orgs","repos_url":"https://api.github.com/users/rsmith31415/repos","events_url":"https://api.github.com/users/rsmith31415/events{/privacy}","received_events_url":"https://api.github.com/users/rsmith31415/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-08-25T19:30:12Z","updated_at":"2015-09-09T19:41:51Z","closed_at":null,"body":"I was confused about the column called \"Row\" that is printed in all DataFrames since it doesn't keep track of indexes after slicing. For example:\r\n\r\n```\r\njulia> df = DataFrame(x=1:100)\r\n\r\njulia> df[20:50,:]\r\n31x1 DataFrame\r\n| Row | x  |\r\n|-----|----|\r\n| 1   | 20 |\r\n| 2   | 21 |\r\n| 3   | 22 |\r\n| 4   | 23 |\r\n| 5   | 24 |\r\n| 6   | 25 |\r\n| 7   | 26 |\r\n| 8   | 27 |\r\n⋮\r\n| 23  | 42 |\r\n| 24  | 43 |\r\n| 25  | 44 |\r\n| 26  | 45 |\r\n| 27  | 46 |\r\n| 28  | 47 |\r\n| 29  | 48 |\r\n| 30  | 49 |\r\n| 31  | 50 |\r\n```\r\n\r\nAs this column \"Row\" is printed, the index starts again with 1 instead of 20. There was an issue ( #187 ) a couple of years ago, but I think the idea was to not rely on indexes and use them only for speed. Since it has been a while, I'd like to know what is the current consensus regarding this issue. "},"comment":{"url":"https://api.github.com/repos/JuliaStats/DataFrames.jl/issues/comments/139024821","html_url":"https://github.com/JuliaStats/DataFrames.jl/issues/864#issuecomment-139024821","issue_url":"https://api.github.com/repos/JuliaStats/DataFrames.jl/issues/864","id":139024821,"user":{"login":"alyst","id":348591,"avatar_url":"https://avatars.githubusercontent.com/u/348591?v=3","gravatar_id":"","url":"https://api.github.com/users/alyst","html_url":"https://github.com/alyst","followers_url":"https://api.github.com/users/alyst/followers","following_url":"https://api.github.com/users/alyst/following{/other_user}","gists_url":"https://api.github.com/users/alyst/gists{/gist_id}","starred_url":"https://api.github.com/users/alyst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alyst/subscriptions","organizations_url":"https://api.github.com/users/alyst/orgs","repos_url":"https://api.github.com/users/alyst/repos","events_url":"https://api.github.com/users/alyst/events{/privacy}","received_events_url":"https://api.github.com/users/alyst/received_events","type":"User","site_admin":false},"created_at":"2015-09-09T19:41:51Z","updated_at":"2015-09-09T19:41:51Z","body":"@rsmith31415 Yes, thank you, that's what I have meant.\r\nOne potential solution could be to add `frozen_column=` parameter to `show(io, df)`. If specified, it should print the contents of this column(s?) (e.g. real record ID) on each page instead of row numbers."}}