Skip to content
Advertisement

Remove substring in array of strings column in dataframe

I have dataframe column which is array of strings

JavaScript

I want to get result like

JavaScript

I want to remove substring 'fruit='

Advertisement

Answer

You can apply a function to the column. In this case split each string by = and take the last element of the result.

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