Put zeros make it four digits before the numbers with less than four digits. I have an dataframe like this;
import pandas as pd
data={'Name':['Karan','Rohit','Sahil','Aryan','Zeyd'],'number':[1,0,1111,111,11]}
df=pd.dataframe(data)
and I want to obtain this output:
Name | Another header |
---|---|
Karan | 0001 |
Rohit | 0000 |
Sahil | 1111 |
Aryan | 0111 |
Zeyd | 0011 |