I am trying to write a script whose values depend on the value of another column.I need to create a new column i.e second column below.Need to assign vales as follows
Sun = 1,Mon = 2 and so on.
(4) => 2 , (6) => 4,5 => 1, 7 => 3
Eg : Sun(5) is 11.How can I script this?
| Sat (4) | 72 |
| Sun (5) | 11 |
| Sun (4) | 12 |
| Mon (5) | 21 |
| Mon (4) | 22 |
| Tue (5) | 31 |
| Tue (4) | 32 |
| Wed (5) | 41 |
| Fri (7) | 63 |
| Wed (6) | 44 |
| Thu (7) | 53 |
| Thu (6) | 54 |
| Fri (6) | 64 |
| Sat (7) | 73 |