<?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: Qlik Sense Python Integration - calling functions with 2 parameters e.g. numpy.percentile in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Python-Integration-calling-functions-with-2/m-p/1840022#M15632</link>
    <description>&lt;P&gt;In case anyone has a similar question, I satisfied the requirement by taking a different approach:&amp;nbsp; by using the pandas quantile method together with the following expression in order to return the 25th quantile:-&lt;/P&gt;&lt;P&gt;ScriptPandas.ScriptAggr('qResult = q.quantile(0.25)',Value)&lt;/P&gt;</description>
    <pubDate>Wed, 29 Sep 2021 10:34:48 GMT</pubDate>
    <dc:creator>rbartley</dc:creator>
    <dc:date>2021-09-29T10:34:48Z</dc:date>
    <item>
      <title>Qlik Sense Python Integration - calling functions with 2 parameters e.g. numpy.percentile</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Python-Integration-calling-functions-with-2/m-p/1839739#M15627</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I have been able to successfully call other numpy methods such as mean, median, var and std that take only one parameter by using this type of expression:&lt;/P&gt;&lt;P&gt;ScriptPandas.ScriptAggr('qResult = q.std()',Value)&lt;/P&gt;&lt;P&gt;However, the percentile method requires at least 2 parameters&amp;nbsp;&lt;A href="https://numpy.org/doc/stable/reference/generated/numpy.percentile.html" target="_blank"&gt;https://numpy.org/doc/stable/reference/generated/numpy.percentile.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;numpy.percentile(&lt;STRONG&gt;a, q&lt;/STRONG&gt;, axis=None, out=None, overwrite_input=False, interpolation='linear', keepdims=False)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 13:10:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Python-Integration-calling-functions-with-2/m-p/1839739#M15627</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2021-09-28T13:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Python Integration - calling functions with 2 parameters e.g. numpy.percentile</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Python-Integration-calling-functions-with-2/m-p/1840022#M15632</link>
      <description>&lt;P&gt;In case anyone has a similar question, I satisfied the requirement by taking a different approach:&amp;nbsp; by using the pandas quantile method together with the following expression in order to return the 25th quantile:-&lt;/P&gt;&lt;P&gt;ScriptPandas.ScriptAggr('qResult = q.quantile(0.25)',Value)&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 10:34:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Python-Integration-calling-functions-with-2/m-p/1840022#M15632</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2021-09-29T10:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Python Integration - calling functions with 2 parameters e.g. numpy.percentile</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Python-Integration-calling-functions-with-2/m-p/1842369#M15673</link>
      <description>&lt;P&gt;Ok, I finally found it:-&lt;/P&gt;&lt;P&gt;SSEPython.ScriptAggrEx('D', 'numpy.percentile(args[0][0],85)',Value)&lt;/P&gt;&lt;P&gt;Where the parameter args[0][0] is the field and 85 is the 85th percentile.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 15:40:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Python-Integration-calling-functions-with-2/m-p/1842369#M15673</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2021-10-05T15:40:59Z</dc:date>
    </item>
  </channel>
</rss>

