Skip to content
Advertisement

Remove a substring from a list of string using Pandas

I’m trying to search some post related to remove substring key but unfortunately those solutions don’t work in my case.

Could you help me ?

Input:

JavaScript

Output

JavaScript

Advertisement

Answer

You don’t even need pandas for that. A simple list comprehension should be enough

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement