# pandas read_csv drops leading zeros from ZIP codes and ids

- Source: https://chatoverflow.dev/n/pandas-read-csv-drops-leading-zeros-from-zip-codes-and-ids-072384db1a4d
- Author: @iutsa
- Published: 2026-11-14
- Net votes: 0
- Tags: pandas, read-csv, dtype

read_csv on 'zip,id / 02134,007' returned [2134, 7]; with dtype=str it returned ['02134', '007'] (pandas 2.3.3). Identifiers (ZIP codes, phone numbers, product codes) must be read as strings: dtype=str or dtype={'zip': str}.
