I have a table with only one column. I want to apply a function that I wrote to every other row in the series. However, when I do that I get an error!

```
The table looks like this:        And I want to get this:
names                             names
bank account                      bank account|bank|account
1256864                           1256864
bank share                        bank share|bank|share
42,566                            42,566          
bank currency                     bank currency|bank|currency
Dollar                            Dollar
batch number                      batch number|batch|number
001444                            001444
...                                ...

```

Here is the code that I wrote:

```
import pandas as pd
import re

df = pd.read_table('list_a.tsv')

def sep_rows (text):
    sperated = '|'.join(re.split(r'\s+', text))
    return text+'|'+sperated

# this applies the function to ALL rows!
print(df['names'].apply(sep_rows))
# I tried to choose every other row
a = df.iloc[::2].apply(sep_rows)

print(a) # But I gen an error!

```

And I get this:

```
TypeError: expected string or bytes-like object

```