I want to remove some characters from 'name' columns, in a way to keep the very first characters and remove the rest
So this is my data:
name id
0 ABC-G 3
1 ERT-R 4
2 IGF 2
The result should be:
name id
0 AB 3
1 ER 4
2 IG 5