<?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 using Python pandas plus matplotlib 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/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;img /&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;img /&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>
    <dc:creator>flapponi</dc:creator>
    <dc:date>2021-10-28T08:48:27Z</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;img /&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;img /&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 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/2159390#M4001</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="335209" data-lia-user-login="flapponi" class="lia-mention lia-mention-user"&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;img /&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 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/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;img /&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;img /&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>

