Indices of a sub-dataframe

could you clarify this, please?

Look at the example above - you get indices of the root DataFrame, not SubDataFrame that was used to do groupby.

The reason is that views in Julia always refer to root object and do not stack.

Yes, I saw. but why do you say that you expected different results from the two forms?

I say that the user would probably expect to get row indices of SubDataFrame that was used to create GroupedDataFrame as this is a natural thing to ask for.