<?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>question What is wrong in reading Nifi flowfile and creating python(pandas)dataframe? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/What-is-wrong-in-reading-Nifi-flowfile-and-creating-python/m-p/294962#M217526</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I have scenario where I am getting the file(stream:flowfile of NIFI) as of type csv file, then creating the dataframe and dumping it thats it. But after creating the dataframe the structure of the file got disturbed, if I open the same flowfile on my disk i could see clear structure with columns separated with tab, but with python dataframe I am not getting the same structure, if I get same structure i can perform&amp;nbsp;row manipulation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="typ"&gt;Here&lt;/SPAN&gt; &lt;SPAN class="typ"&gt;What&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; I am doing&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt;
&lt;SPAN class="lit"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; using &lt;/SPAN&gt;&lt;SPAN class="typ"&gt;ExecuteSQL&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; processor&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; I am getting database record&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;

&lt;SPAN class="lit"&gt;2&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; then passing this record to &lt;/SPAN&gt;&lt;SPAN class="typ"&gt;ConvertRecord&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; processor  to convert this avro record type csv file separated by tab&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;
convertRecordSetWriter settings...&lt;BR /&gt;
&lt;SPAN class="pun"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/27275i6A2DA622BC10192B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;The output of the flowfile is ...&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/27276i5EB43E66B96B3607/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="lit"&gt;3&lt;/SPAN&gt;: &lt;SPAN class="typ"&gt;Then&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; the reading flowfile&lt;/SPAN&gt;(&lt;SPAN class="pln"&gt;step &lt;/SPAN&gt;&lt;SPAN class="lit"&gt;2&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; folowfile&lt;/SPAN&gt;)  &lt;SPAN class="kwd"&gt;as&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; python data using &lt;/SPAN&gt;&lt;SPAN class="typ"&gt;ExecuteStreamCommand&lt;/SPAN&gt;,&lt;SPAN class="pln"&gt; coz I am want to perform some action on the database record&lt;/SPAN&gt;,&lt;SPAN class="pln"&gt; to &lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;do&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; this my record structure has been changed  &lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;in&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; data frame&lt;/SPAN&gt;.&lt;BR /&gt;&lt;/SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/27277i3CA6DE6C69BEE45C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Apr 2020 14:47:37 GMT</pubDate>
    <dc:creator>murali2425</dc:creator>
    <dc:date>2020-04-28T14:47:37Z</dc:date>
    <item>
      <title>What is wrong in reading Nifi flowfile and creating python(pandas)dataframe?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/What-is-wrong-in-reading-Nifi-flowfile-and-creating-python/m-p/294962#M217526</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have scenario where I am getting the file(stream:flowfile of NIFI) as of type csv file, then creating the dataframe and dumping it thats it. But after creating the dataframe the structure of the file got disturbed, if I open the same flowfile on my disk i could see clear structure with columns separated with tab, but with python dataframe I am not getting the same structure, if I get same structure i can perform&amp;nbsp;row manipulation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="typ"&gt;Here&lt;/SPAN&gt; &lt;SPAN class="typ"&gt;What&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; I am doing&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt;
&lt;SPAN class="lit"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; using &lt;/SPAN&gt;&lt;SPAN class="typ"&gt;ExecuteSQL&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; processor&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; I am getting database record&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;

&lt;SPAN class="lit"&gt;2&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; then passing this record to &lt;/SPAN&gt;&lt;SPAN class="typ"&gt;ConvertRecord&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; processor  to convert this avro record type csv file separated by tab&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;
convertRecordSetWriter settings...&lt;BR /&gt;
&lt;SPAN class="pun"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/27275i6A2DA622BC10192B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;The output of the flowfile is ...&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/27276i5EB43E66B96B3607/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="lit"&gt;3&lt;/SPAN&gt;: &lt;SPAN class="typ"&gt;Then&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; the reading flowfile&lt;/SPAN&gt;(&lt;SPAN class="pln"&gt;step &lt;/SPAN&gt;&lt;SPAN class="lit"&gt;2&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; folowfile&lt;/SPAN&gt;)  &lt;SPAN class="kwd"&gt;as&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; python data using &lt;/SPAN&gt;&lt;SPAN class="typ"&gt;ExecuteStreamCommand&lt;/SPAN&gt;,&lt;SPAN class="pln"&gt; coz I am want to perform some action on the database record&lt;/SPAN&gt;,&lt;SPAN class="pln"&gt; to &lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;do&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; this my record structure has been changed  &lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;in&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; data frame&lt;/SPAN&gt;.&lt;BR /&gt;&lt;/SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/27277i3CA6DE6C69BEE45C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 14:47:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/What-is-wrong-in-reading-Nifi-flowfile-and-creating-python/m-p/294962#M217526</guid>
      <dc:creator>murali2425</dc:creator>
      <dc:date>2020-04-28T14:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: What is wrong in reading Nifi flowfile and creating python(pandas)dataframe?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/What-is-wrong-in-reading-Nifi-flowfile-and-creating-python/m-p/294979#M217538</link>
      <description>&lt;P&gt;it did work after adding '\t' to read_csv as 2nd arg.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 18:02:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/What-is-wrong-in-reading-Nifi-flowfile-and-creating-python/m-p/294979#M217538</guid>
      <dc:creator>murali2425</dc:creator>
      <dc:date>2020-04-28T18:02:29Z</dc:date>
    </item>
  </channel>
</rss>

