<?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: using Python pandas pus matplot lib for advanced visuals in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/using-Python-pandas-plus-matplotlib-for-advanced-visuals/m-p/2159390#M4001</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/335209"&gt;@flapponi&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Without seeing your code or data I can only speculate, but it's highly likely that your dataset is being aggregated to distinct values by Power BI, which is it's default behaviour (vs. tools like Jupyter, which take a dataset as-is and process row-by row). You can confirm this by clicking the visual header and selecting&amp;nbsp;&lt;STRONG&gt;Show as a table&lt;/STRONG&gt;, which will likely confirm that you have less total rows in your visual than in your dataset.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dmp_0-1635379139890.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/620843i3CB7543AC177D444/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dmp_0-1635379139890.png" alt="dmp_0-1635379139890.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The simplest solution is to add a column to your dataset that will ensure Power BI creates the desired level of granularity for your data frame in Python. This approach is &lt;A href="https://coacervo.co/violin-plot-sampling" target="_self"&gt;written up in longer form (with illustration of the concept) here;&lt;/A&gt; while this post focuses on a specific visual, the approach is portable for any visual that needs the lowest level of grain possible. We've also &lt;A href="https://github.com/deneb-viz/deneb/issues/86#issuecomment-893001933" target="_self"&gt;discussed this consideration for another tool&lt;/A&gt;&amp;nbsp;external to Power BI vs. internally here, which again uses this approach and may help clarify further.&lt;/P&gt;
&lt;P&gt;If this approach does not solve, you may need to provide further information on your dataset for us to help further.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
    <pubDate>Thu, 28 Oct 2021 00:06:17 GMT</pubDate>
    <dc:creator>dm-p</dc:creator>
    <dc:date>2021-10-28T00:06:17Z</dc:date>
    <item>
      <title>using Python pandas plus matplotlib for advanced visuals</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/using-Python-pandas-plus-matplotlib-for-advanced-visuals/m-p/2157844#M3997</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am new in this community. I am transferring some python codes into a power BI project in order to share with my colleagues. I put together a code to plot the cumulative sum of certain curves with fill colors in between. I transfer it ito power BI and the result is not what it should be expected (the code run fine on my jupyter notebook however). see below the&lt;/P&gt;&lt;P&gt;result&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="flapponi_0-1635327969186.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/620416iD128EBB6633C50DF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="flapponi_0-1635327969186.png" alt="flapponi_0-1635327969186.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;expected (from jupyter notebook&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="flapponi_1-1635328010766.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/620418i2DD7C7138468EB71/image-size/medium?v=v2&amp;amp;px=400" role="button" title="flapponi_1-1635328010766.png" alt="flapponi_1-1635328010766.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;maybe I am pushing too much the limits, however is there anything I should consider?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 08:48:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/using-Python-pandas-plus-matplotlib-for-advanced-visuals/m-p/2157844#M3997</guid>
      <dc:creator>flapponi</dc:creator>
      <dc:date>2021-10-28T08:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: using Python pandas pus matplot lib for advanced visuals</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/using-Python-pandas-plus-matplotlib-for-advanced-visuals/m-p/2159390#M4001</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/335209"&gt;@flapponi&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Without seeing your code or data I can only speculate, but it's highly likely that your dataset is being aggregated to distinct values by Power BI, which is it's default behaviour (vs. tools like Jupyter, which take a dataset as-is and process row-by row). You can confirm this by clicking the visual header and selecting&amp;nbsp;&lt;STRONG&gt;Show as a table&lt;/STRONG&gt;, which will likely confirm that you have less total rows in your visual than in your dataset.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dmp_0-1635379139890.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/620843i3CB7543AC177D444/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dmp_0-1635379139890.png" alt="dmp_0-1635379139890.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The simplest solution is to add a column to your dataset that will ensure Power BI creates the desired level of granularity for your data frame in Python. This approach is &lt;A href="https://coacervo.co/violin-plot-sampling" target="_self"&gt;written up in longer form (with illustration of the concept) here;&lt;/A&gt; while this post focuses on a specific visual, the approach is portable for any visual that needs the lowest level of grain possible. We've also &lt;A href="https://github.com/deneb-viz/deneb/issues/86#issuecomment-893001933" target="_self"&gt;discussed this consideration for another tool&lt;/A&gt;&amp;nbsp;external to Power BI vs. internally here, which again uses this approach and may help clarify further.&lt;/P&gt;
&lt;P&gt;If this approach does not solve, you may need to provide further information on your dataset for us to help further.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 00:06:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/using-Python-pandas-plus-matplotlib-for-advanced-visuals/m-p/2159390#M4001</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2021-10-28T00:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: using Python pandas pus matplot lib for advanced visuals</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/using-Python-pandas-plus-matplotlib-for-advanced-visuals/m-p/2160387#M4003</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;txs for yuor prompt answer! the dataset seems to be correct. I have plotted using a bar chart with continuous axis and I get the desired result (see image below). however this visual has a very annoying limitation as it seems not to allow to sort the axis value according to your prreference (ascending or descending).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="flapponi_0-1635410578435.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/621196i7B91A6CFAC674830/image-size/medium?v=v2&amp;amp;px=400" role="button" title="flapponi_0-1635410578435.png" alt="flapponi_0-1635410578435.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Interestingly adn surprisingly, this is only allowed using categorical y axis type!?!? but this visual is not really necessary as there are way toomany categories in this way and I would eneed to downsample my data (the y axis is technically a continuous data type)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="flapponi_1-1635410658147.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/621198i689D1AAE64579A5E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="flapponi_1-1635410658147.png" alt="flapponi_1-1635410658147.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll see the best way to share a subset of my data and code for a test if you like to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Txs again and regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fabio&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 08:50:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/using-Python-pandas-plus-matplotlib-for-advanced-visuals/m-p/2160387#M4003</guid>
      <dc:creator>flapponi</dc:creator>
      <dc:date>2021-10-28T08:50:46Z</dc:date>
    </item>
  </channel>
</rss>

