In my opinion, when you did `df[20:50,:]`, you constructed a new DataFrame, which had no longer anything to do with the original `df`. So you cannot expect it to know the original position in `df`. And when you print it, the row number (instead of index) is generated on the fly, just let you know which value is at which line of the output.
I think what needed here is just a formatted `print()` for DataFrame, which can toggle the row number index. On Monday, August 24, 2015 at 5:46:07 PM UTC+2, Robert Smith wrote: > > Well, the printed index is useful but leads to some confusion because it > doesn't behave as a real index. It would be much better to have a real > index. I believe there will be real indexes to increase speed, but Julia > developers don't want to depend on them. Is that a correct assessment right > now? It has been a while since those discussions took place. > > Maybe another alternative would be to have the printed index as default > and let the user remove them without requiring a key. >
