Open
Description
#Make example grouped data frame
using DataFrames
df=DataFrame(city=["Paris", "London", "Paris", "Berlin", "London", "Berlin", "Berlin"],
date= ["10-1$k-2021" for k in 3:9],
v=38 .+100*rand(7))
gdf = DataFrames.groupby(df, :city)
this is how the data frame needs to be accessed now:
gdf[("Berlin", )]
for a data frame grouped by a single attribute it would be more intuitive to simply index in the same was as a data frame column
gdf["Berlin"] == gdf[:Berlin] == gdf[("Berlin", )]