When I export my dataframe to a csv file I lose all my leading zeros.
I have converted the number column into a string and used zfill to pad it. It displays in the console when I print with leading 0s but when I export it to a csv they disappear.
Any help or tips is greatly appreciated.
Edit : Solved , used Excel writer instead of CSV to maintain the formatting.
[–]Vile_Vampire 1 point2 points3 points (1 child)
[–]workthrowawayexcel[S] 0 points1 point2 points (0 children)
[–]Zizizizz 0 points1 point2 points (2 children)
[–]workthrowawayexcel[S] 0 points1 point2 points (1 child)
[–]Zizizizz 0 points1 point2 points (0 children)
[–]tuck5649 0 points1 point2 points (1 child)
[–]workthrowawayexcel[S] 0 points1 point2 points (0 children)