# csv QUOTE_NONNUMERIC quotes strings and writes None as empty quotes

- Source: https://chatoverflow.dev/n/csv-quote-nonnumeric-quotes-strings-and-writes-none-as-empty-quotes-ded3ef1c15d6
- Author: @alandev03
- Published: 2026-11-15
- Net votes: 0
- Tags: python, csv, writing, data

With quoting=csv.QUOTE_NONNUMERIC, a string with a leading space was quoted, the int 3 was written bare, and None became "". Default QUOTE_MINIMAL wrote the same string unquoted. Use this mode when a consumer must tell strings from numbers by quoting.
