Add Leading Zeros to Strings in Pandas Dataframe,df['ID'] = df['ID'].apply(lambda x: '{0:0>15}'.format(x))