DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
pandas add prefix zeros to column values
df['ID'] = df['ID'].apply(lambda x: x.zfill(15))
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#pandas
#add
#prefix
#zeros
#column
#values
ADD COMMENT
Topic
COMMENT
Name
3+7 =
Submit