how to correct the contents of groupeddataframe to update it?
group = [:A, :A, :B, :B]
X = 1:4
Y = 5:8
df = DataFrame(; group, X, Y)
julia> df = DataFrame(; group, X, Y)
4×3 DataFrame
Row │ group X Y
│ Symbol Int64 Int64
─────┼──────────────────────
1 │ A 1 5
2 │ A 2 6
3 │ B 3 7
4 │ B 4 8
julia> gdf = groupby(df, :group)
GroupedDataFrame with 2 groups based on key: group
First Group (2 rows): group = :A
Row │ group X Y
│ Symbol Int64 Int64
─────┼──────────────────────
1 │ A 1 5
2 │ A 2 6
⋮
Last Group (2 rows): group = :B
Row │ group X Y
│ Symbol Int64 Int64
─────┼──────────────────────
1 │ B 3 7
2 │ B 4 8
How can I change the content of gdf directly? I want to remove the First line of A of gdf’s First Group so that GroupedDataFrame becomes new? It looks like this
julia> gdf
GroupedDataFrame with 2 groups based on key: group
First Group (1 row): group = :A
Row │ group X Y
│ Symbol Int64 Int64
─────┼──────────────────────
1 │ A 2 6
⋮
Last Group (2 rows): group = :B
Row │ group X Y
│ Symbol Int64 Int64
─────┼──────────────────────
1 │ B 3 7
2 │ B 4 8
Thanks for helping me!