I'm working with a 2D slice of string in go and I want to group them by "A" column value but I couldn't figure it out.
I tried to use gota data frame but it also doesn't have group by like what is available in pandas.
input := [][]string{
[]string{"b", "3", "2.9", "5.3"},
[]string{"a", "4", "5.1", "9.1"},
[]string{"b", "4", "6.0", "5.3"},
[]string{"c", "3", "6.0", "5.5"},
[]string{"a", "2", "7.1", "9.2"},
}
I want to have output like this.
[[b 3 2.9 5.3 4 6.0 5.3] [a 4 5.1 9.1 2 7.1 9.2] [c 3 6.0 5.5]]