I have a dataframe with column name col1 and col2 of integer type entries. I want to join the entries of the col1 with col2 along with a '.'(dot) in between. I have searched and found to add two column entries :
df['col'] = df['col1'].map(str) + df['col2'].map(str)
and for add a dot :
df['col'] = df['col1'].astype(str) + '.'
but I want something like this
df['col'] = each entries of df['col1'] + '.' + each entries of df['col2']
what is the difference between .map(str) and .astype(str). and which suits in my case.