I have the list below and I would like to remove the brackets around the numbers They are set as strings. When I try to use the code below everything after the comma is deleted and when I try to use the second code, everything but the brackets are deleted. Does anybody know why this is happening and how to fix it?
1. df['id'].str.get(0)
2. df['id'].str[10:]
Example of the list I`m using
0 [755316924681835123, 624417788919829344]
3 [755316924681835123, 624417788919829344]
4 [767214484270895116, 784006322814210766]