Dear community,

suppose we have a simple dataframe

```
df = DataFrame(Cat1 = ["A", "A", "B", "B"],
Cat2 = ["C", "D", "C", "D"],
val1 = 1:4,
val2 = 5:8)
```

which looks like

```
julia> df
4×4 DataFrame
│ Row │ Cat1 │ Cat2 │ val1 │ val2 │
│ │ String │ String │ Int64 │ Int64 │
├─────┼────────┼────────┼───────┼───────┤
│ 1 │ A │ C │ 1 │ 5 │
│ 2 │ A │ D │ 2 │ 6 │
│ 3 │ B │ C │ 3 │ 7 │
│ 4 │ B │ D │ 4 │ 8 │
```

Is it possible to group the df by Cat1 horizontally such that we obtain something like:

```
| A | B
│ Row │ Cat2 │ val1 │ val2 │ val1 │ val2 │
│ │ String │ Int64 │ Int64 │ Int64 │ Int64 │
├─────┼────────┼───────┼───────┼───────┼───────┤
│ 1 │ C │ 1 │ 5 │ 1 │ 5 │
│ 2 │ D │ 2 │ 6 │ 2 │ 6 │
│ 3 │ C │ 3 │ 7 │ 3 │ 7 │
│ 4 │ D │ 4 │ 8 │ 4 │ 8 │
```

Thank you in advance!!