Skip to content
Advertisement

How to remowe a string up to a specific character (Python/pandas)?

I have the DataFrame:

JavaScript

How I can cut values that get the next result, which you can see in the df['name_2] column: enter image description here

Advertisement

Answer

You can use urllib.parse module to parse those URLs.

JavaScript
Advertisement