Framework:
Name | cater |
---|---|
1 | a |
2 | a |
3 | b |
4 | c |
5 | d |
6 | b |
7 | b |
8 | c |
what I want:
array = [3.234,2.467,4.56,4.7]
Name | cater | average |
---|---|---|
1 | a | 3.234 |
2 | a | 3.234 |
3 | b | 2.467 |
4 | c | 4.56 |
5 | d | 4.7 |
6 | b | 2.467 |
7 | b | 2.467 |
8 | c | 4.56 |
i know this is a little weird, i just want to put array values to correct position based cater names. i def a function try to make that happen, dont know why i just add the first array in the correct postion, others still null, i am poor with python.