How to add new column using python?

python

#1

@aayushmnit i need help.

abc_sbc_first_abc_abc_abc
abc_sbc_second_abc_abc_abc
abc_sbc_third_abc_abc_abc

above are 3 rows of a column, need python code that read above column row by row and create a new column like below example;

first
second
third


#2


#3

Thanx @aayushmnit


#5
data = pd.DataFrame(['abc_sbc_first_abc_abc_abc', 'abc_sbc_second_abc_abc_abc', 'abc_sbc_third_abc_abc_abc'])

data[1] = ['first', 'second', 'third']

data

Capture