In [1]:
import pandas as pd
In [2]:
data = [{'test': 'vikash|Arpit', 'val': 6},
{'test': 'vikash_1|arpit|Vinayp', 'val': 3},
{'test': 'arpit|vinayp', 'val': 2}]
In [3]:
df = pd.DataFrame.from_dict(data, orient='columns')
In [4]:
df
Out[4]:
In [5]:
df['test'].apply(lambda x: pd.Series([i for i in reversed(x.lower().split('|'))]))
Out[5]:
In [ ]: