Python Forum
Csv writer meaning of quoting
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Csv writer meaning of quoting
#1
Hi Team,

in below code I want understand what quoting does.

What is the meaning of these, in which situation others to use it.

csv.QUOTE_NONNUMERIC
csv.QUOTE_ALL
csv.QUOTE_MINIMAL

with open(fullpath, "w", newline="") as outfile:
        writer = csv.writer(outfile, delimiter="|", quoting=csv.QUOTE_NONNUMERIC)
Reply


Messages In This Thread
Csv writer meaning of quoting - by mg24 - Oct-01-2022, 02:15 AM
RE: Csv writer meaning of quoting - by ibreeden - Oct-01-2022, 08:56 AM
RE: Csv writer meaning of quoting - by Gribouillis - Oct-01-2022, 02:16 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to understand the meaning of the line of code. jahuja73 0 362 Jan-23-2024, 05:09 AM
Last Post: jahuja73
  [split] NameError: name 'csvwriter' is not defined. Did you mean: 'writer'? cathy12 4 3,471 Sep-01-2022, 07:41 PM
Last Post: deanhystad
Sad pandas writer create "corrupted" file freko75 1 2,906 Jun-14-2022, 09:57 PM
Last Post: snippsat
  meaning of -> syntax in function definition DrakeSoft 5 2,055 Apr-09-2022, 07:45 AM
Last Post: DrakeSoft
  CSV writer - no output?? Clives 6 2,658 Mar-30-2022, 04:09 PM
Last Post: Clives
  Operator meaning explanation Sherine 3 2,100 Jul-31-2021, 11:05 AM
Last Post: Sherine
  parser.parse_args() meaning vinci 2 2,676 Oct-26-2020, 04:13 PM
Last Post: vinci
  What is the meaning of k in this function? giladal 3 2,795 Aug-15-2020, 12:32 PM
Last Post: buran
  Closing Files - CSV Reader/Writer lummers 2 2,660 May-28-2020, 06:36 AM
Last Post: Knight18
  Here what is the meaning of span=(1,2) ,match='1'? srisrinu 1 2,165 Apr-27-2020, 10:22 AM
Last Post: anbu23

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020