<?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 Parsing an array of outputs in Qlikview using SSE for Python (3rd order Polynomial) in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Parsing-an-array-of-outputs-in-Qlikview-using-SSE-for-Python-3rd/m-p/1671645#M14635</link>
    <description>&lt;P&gt;Hey there,&lt;/P&gt;&lt;P&gt;I'm currently experimenting with Server Side Extensions in Qlikview using the following code:&amp;nbsp;&amp;nbsp;&lt;A href="https://github.com/qlik-oss/server-side-extension" target="_blank"&gt;https://github.com/qlik-oss/server-side-extension&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I was doing an example with a 3rd order polynomial as while you can get a trendline for this in view you can't access the underlying equation in order to use it for predictions.&amp;nbsp; I've attached a QVW of what I've done which works fine (see image below).&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is that when I get the result back from python it's in an array and so you'll see in the app that I fetch each coefficient and place it in a variable and then use those variables in my expression.&amp;nbsp; This is pretty inefficient though because I have to call python for each coefficient.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then tried joining all of the outputs in the array into a single string but the SSE wasn't happy with this as I was using&amp;nbsp;ScriptAggr.&amp;nbsp; If I switch to&amp;nbsp;ScriptAggrStr, it also fails because it wants the inputs to be strings.&lt;/P&gt;&lt;P&gt;Is there not a better way to do this than what I'm doing now?&amp;nbsp; i.e. pass in two columns and then make a 3rd order polynomial prediction?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="example_result.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27858i6668719A901D1B54/image-size/medium?v=v2&amp;amp;px=400" role="button" title="example_result.png" alt="example_result.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 03:23:20 GMT</pubDate>
    <dc:creator>nsm1234567</dc:creator>
    <dc:date>2024-11-16T03:23:20Z</dc:date>
    <item>
      <title>Parsing an array of outputs in Qlikview using SSE for Python (3rd order Polynomial)</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Parsing-an-array-of-outputs-in-Qlikview-using-SSE-for-Python-3rd/m-p/1671645#M14635</link>
      <description>&lt;P&gt;Hey there,&lt;/P&gt;&lt;P&gt;I'm currently experimenting with Server Side Extensions in Qlikview using the following code:&amp;nbsp;&amp;nbsp;&lt;A href="https://github.com/qlik-oss/server-side-extension" target="_blank"&gt;https://github.com/qlik-oss/server-side-extension&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I was doing an example with a 3rd order polynomial as while you can get a trendline for this in view you can't access the underlying equation in order to use it for predictions.&amp;nbsp; I've attached a QVW of what I've done which works fine (see image below).&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is that when I get the result back from python it's in an array and so you'll see in the app that I fetch each coefficient and place it in a variable and then use those variables in my expression.&amp;nbsp; This is pretty inefficient though because I have to call python for each coefficient.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then tried joining all of the outputs in the array into a single string but the SSE wasn't happy with this as I was using&amp;nbsp;ScriptAggr.&amp;nbsp; If I switch to&amp;nbsp;ScriptAggrStr, it also fails because it wants the inputs to be strings.&lt;/P&gt;&lt;P&gt;Is there not a better way to do this than what I'm doing now?&amp;nbsp; i.e. pass in two columns and then make a 3rd order polynomial prediction?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="example_result.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27858i6668719A901D1B54/image-size/medium?v=v2&amp;amp;px=400" role="button" title="example_result.png" alt="example_result.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:23:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Parsing-an-array-of-outputs-in-Qlikview-using-SSE-for-Python-3rd/m-p/1671645#M14635</guid>
      <dc:creator>nsm1234567</dc:creator>
      <dc:date>2024-11-16T03:23:20Z</dc:date>
    </item>
  </channel>
</rss>

