I have pandas dataframe like this:
api_url
"url": "https://apis.asia.pntk.cloud/asiaerState",
"url": "https://apis.asia.pntk.cloud/M6518&=38396885",
"url": "https://apis.asia.pntk.cloud/=38396885"
"url": "https://apis.asia.pntk.cloud/518112A",
In the values there could be ',' at the end. I want to trip all special character, take only the actual api url, so the output dataframe would like this:
api_url
https://apis.asia.pntk.cloud/asiaerState
https://apis.asia.pntk.cloud/M65181150%-48UXM%2CNA&so85
https://apis.asia.pntk.cloud/96885
https://apis.asia.pntk.cloud/5181150%2CC9300-48UXM%2A
How can I achieve this?