I have the next doubt. How does that "for iteration" inside the join works?
df = pd.DataFrame({'Col1': ['2014', '2015'],
    'Col2': ['40000', '50000']})
df['cost'] = df[['Col1', 'Col2']].apply(
    lambda x: '|'.join([str(i) for i in x]), axis=1)+'|'
 
     
    