Why leading zeros from a numbers ignore on exporting polars dataframe to CSV?

Viewed 40

I have a polars dataframe with a number in a string datatype;

enter image description here

On exporting it to csv using write_csv method it ignores the leading zeros and the output it-

enter image description here

How to retain the zeros on exporting the files to csv?

0 Answers
Related