i have a big list of attributes and i want to convert them into a table.
I looks like this:
name Key Value
1 age 20
1 sex 1
2 age 20
2 sex 0
3 age 22
4 age 30
5 age 29
6 age 6
I want to convert it to something like this:
name age sex
1 20 1
2 20 0
3 22
4 30
5 29
6 6
Anyone have an idea?
#
EDIT My original list have a lot more values, not just 2. all the answers i saw don't answer my question. I'll try to explain it better with smaller table.
my table:
name key value
1 first 0
2 first 1
2 sec 1
1 sec 2
1 tr 1
2 tr 0
3 first 0
3 sec 0
4 first 0
wanted result:
name first sec tr
1 0 2 1
2 1 1 0
3 0 0
4 0