number = 15 # number of zeroes to add df['ID'] = df['ID'].str.zfill(number)

Read more of this post