Skip to content
Advertisement

Converting each row into a dataframe and concatenate results

I have a dataframe df in the format below, where content is a string column.

JavaScript

and I want to convert it to the format:

JavaScript

I tried doing this,

JavaScript

which works, but it doesn’t look nice. Is there any better way to do this?

Advertisement

Answer

Let us try

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