<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Writing Results to Existing Specific CSV Column in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/writing-results-to-existing-specific-csv-column/m-p/729628#M56584</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I took a read through it all, was quite a lot of information to take in but I ended up getting it to work with just one hiccup,&amp;nbsp;&lt;/P&gt;&lt;P&gt;My data that is put into that column contains a space between each one, as seen below;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/427018_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not sure why.. but other then that it works!&lt;/P&gt;&lt;P&gt;Here is the code&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/427088_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Nov 2018 16:27:04 GMT</pubDate>
    <dc:creator>AdamThompson3</dc:creator>
    <dc:date>2018-11-02T16:27:04Z</dc:date>
    <item>
      <title>Writing Results to Existing Specific CSV Column</title>
      <link>https://community.esri.com/t5/python-questions/writing-results-to-existing-specific-csv-column/m-p/729626#M56582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Running into a bit of a problem that I am not sure how to resolve after researching for awhile, What I would like to do is write my results from a search cursor to an existing column in a csv file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So currently this is the code I have;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/426958_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;The first portion of my code works exactly how I want it too, and prints how I would like it to be displayed in the csv file. Now what I would like to do is take those values and write them to an existing Field in my CSV called "Play", I am not sure how to go about this. This is what I have gotten so far for my results..&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/426968_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The highlighted portion is what I want to write to the specific column "Play" in my csv, I can read the file and find out the column position is row[0] but cant write to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2018 21:05:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/writing-results-to-existing-specific-csv-column/m-p/729626#M56582</guid>
      <dc:creator>AdamThompson3</dc:creator>
      <dc:date>2018-11-01T21:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Writing Results to Existing Specific CSV Column</title>
      <link>https://community.esri.com/t5/python-questions/writing-results-to-existing-specific-csv-column/m-p/729627#M56583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need a writer to write. Check the example here:&amp;nbsp;&lt;A class="link-titled" href="https://docs.python.org/2/library/csv.html#csv.writer" title="https://docs.python.org/2/library/csv.html#csv.writer"&gt;13.1. csv — CSV File Reading and Writing — Python 2.7.15 documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2018 21:16:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/writing-results-to-existing-specific-csv-column/m-p/729627#M56583</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2018-11-01T21:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Writing Results to Existing Specific CSV Column</title>
      <link>https://community.esri.com/t5/python-questions/writing-results-to-existing-specific-csv-column/m-p/729628#M56584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I took a read through it all, was quite a lot of information to take in but I ended up getting it to work with just one hiccup,&amp;nbsp;&lt;/P&gt;&lt;P&gt;My data that is put into that column contains a space between each one, as seen below;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/427018_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not sure why.. but other then that it works!&lt;/P&gt;&lt;P&gt;Here is the code&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/427088_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2018 16:27:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/writing-results-to-existing-specific-csv-column/m-p/729628#M56584</guid>
      <dc:creator>AdamThompson3</dc:creator>
      <dc:date>2018-11-02T16:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Writing Results to Existing Specific CSV Column</title>
      <link>https://community.esri.com/t5/python-questions/writing-results-to-existing-specific-csv-column/m-p/729629#M56585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Weird, do you see anything funny (newline character) if you open it in a simple text editor?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2018 16:39:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/writing-results-to-existing-specific-csv-column/m-p/729629#M56585</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2018-11-02T16:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Writing Results to Existing Specific CSV Column</title>
      <link>https://community.esri.com/t5/python-questions/writing-results-to-existing-specific-csv-column/m-p/729630#M56586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No when I open it with just notepad it looks correct,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/427095_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;Although NotePad ++ gives me the same as the excel as well&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/427096_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;very weird indeed! Anyways thank you for the link to the CSV Writer info though, that was very helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2018 16:45:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/writing-results-to-existing-specific-csv-column/m-p/729630#M56586</guid>
      <dc:creator>AdamThompson3</dc:creator>
      <dc:date>2018-11-02T16:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Writing Results to Existing Specific CSV Column</title>
      <link>https://community.esri.com/t5/python-questions/writing-results-to-existing-specific-csv-column/m-p/729631#M56587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, try using 'wb' mode rather than 'w'&amp;nbsp;with Python 2 on Windows.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2018 17:40:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/writing-results-to-existing-specific-csv-column/m-p/729631#M56587</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2018-11-02T17:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Writing Results to Existing Specific CSV Column</title>
      <link>https://community.esri.com/t5/python-questions/writing-results-to-existing-specific-csv-column/m-p/729632#M56588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yup that did it!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2018 17:43:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/writing-results-to-existing-specific-csv-column/m-p/729632#M56588</guid>
      <dc:creator>AdamThompson3</dc:creator>
      <dc:date>2018-11-02T17:43:48Z</dc:date>
    </item>
  </channel>
</rss>

