I'm trying to combine odd columns' text and even columns' text.
sample series
column
0 a
1 b
2 c
3 d
and I want this output
column
0 ab
1 cd
I tried
new_df['new'] = df['column'][::2].map(str) + df['column'][1::2]
but it returns
new
0 NaN
1 NaN
2 NaN
3 NaN
4 NaN
Can anyone help me?