So fügen Sie Nullen vor Zahlen in Pandas hinzu
number = 15 # number of zeroes to add
df['ID'] = df['ID'].str.zfill(number)
Gifted Grasshopper
number = 15 # number of zeroes to add
df['ID'] = df['ID'].str.zfill(number)