<?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 Csv data has cells with comma separated values in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/csv-data-has-cells-with-comma-separated-values/m-p/1247118#M64138</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I wonder if someone can help me here. I have a csv table cells with comma separated values. I need to split those comma separated values into new rows and populate the corresponding field by dividing the dollar amount to the number of newly created rows&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.jpg" style="width: 4032px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60147i513533D94D559C64/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image.jpg" alt="image.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; so I am trying to create something like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.jpg" style="width: 4032px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60148i0548C7E93EC4F2BD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image.jpg" alt="image.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; I haven’t included the dataset as it is huge. I know I can accomplish this in excel, but I want to automate the process with a larger dataset update in ArcGIS Pro. Thank you all in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Wed, 11 Jan 2023 01:42:21 GMT</pubDate>
    <dc:creator>Suedietrich</dc:creator>
    <dc:date>2023-01-11T01:42:21Z</dc:date>
    <item>
      <title>Csv data has cells with comma separated values</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/csv-data-has-cells-with-comma-separated-values/m-p/1247118#M64138</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I wonder if someone can help me here. I have a csv table cells with comma separated values. I need to split those comma separated values into new rows and populate the corresponding field by dividing the dollar amount to the number of newly created rows&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.jpg" style="width: 4032px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60147i513533D94D559C64/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image.jpg" alt="image.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; so I am trying to create something like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.jpg" style="width: 4032px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60148i0548C7E93EC4F2BD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image.jpg" alt="image.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; I haven’t included the dataset as it is huge. I know I can accomplish this in excel, but I want to automate the process with a larger dataset update in ArcGIS Pro. Thank you all in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 01:42:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/csv-data-has-cells-with-comma-separated-values/m-p/1247118#M64138</guid>
      <dc:creator>Suedietrich</dc:creator>
      <dc:date>2023-01-11T01:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Csv data has cells with comma separated values</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/csv-data-has-cells-with-comma-separated-values/m-p/1247143#M64144</link>
      <description>&lt;P&gt;Just one approach, this can be done using python expressions in the Python window. You can copy and paste the results into a new file to read it in as a table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;with arcpy.da.SearchCursor("file.csv") as rows:
  for row in rows:
    ids = row[0].split(",")
    val = float(row[1])
    valpart = val / len(ids)
    for k in ids:
      print(k, valpart)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 07:20:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/csv-data-has-cells-with-comma-separated-values/m-p/1247143#M64144</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2023-01-11T07:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Csv data has cells with comma separated values</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/csv-data-has-cells-with-comma-separated-values/m-p/1247217#M64152</link>
      <description>&lt;P&gt;Many thanks!!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 13:56:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/csv-data-has-cells-with-comma-separated-values/m-p/1247217#M64152</guid>
      <dc:creator>Suedietrich</dc:creator>
      <dc:date>2023-01-11T13:56:49Z</dc:date>
    </item>
  </channel>
</rss>

