Skip to content
Advertisement

How to split words into different columns in dataframe?

I am new to coding , recently started learning to code. Currently I am stuck in the process to split a column. Please help me

I have this dataframe

JavaScript

and I want to split it into

JavaScript

Really appreciate for taking your time and answering to my problem.

PS: this is just an example of option symbol which is combination of Index + date + strike + type (stock market)

Advertisement

Answer

Use str.extract to explode your string:

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