<?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 How to allow python visual to access folder in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-to-allow-python-visual-to-access-folder/m-p/3056909#M53630</link>
    <description>&lt;P&gt;Hi everyone, I'm facing problem to run my python script in PowerBi.&lt;/P&gt;&lt;P&gt;I need to let the user to filter fields using slider, and send the value to the python script to run.&lt;/P&gt;&lt;P&gt;But the script is quite complicated which it need to access and refer the pkl files in folder and I'm not sure that the python visual can support this kind of script or not.&lt;/P&gt;&lt;P&gt;I am new in both python and powerbi, need somebody's help to find a good solution on this issue and below is the original python script I need to run. Thanks a lot.&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;FONT color="#339966"&gt;import l1_alg_module&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;import pandas as pd&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;dret_info, df_res, json_res = l1_alg_module.get_shapley(input_data_file=&lt;STRONG&gt;"D:/pythonWorks/whatif/city_daily.csv",&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;FONT color="#339966"&gt;obj_id_col=&lt;STRONG&gt;'city'&lt;/STRONG&gt;,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;FONT color="#339966"&gt;time_id_col=&lt;STRONG&gt;'calendar_date'&lt;/STRONG&gt;,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;FONT color="#339966"&gt;model_file_path=&lt;STRONG&gt;"D:/pythonWorks/whatif/new_city_l1/models/"&lt;/STRONG&gt;, =&amp;gt;pkl files&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;FONT color="#339966"&gt;test_obj_name=&lt;STRONG&gt;"KOTA MEDAN"&lt;/STRONG&gt;, =&amp;gt; According value selected in slider&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;FONT color="#339966"&gt;start_window_date=&lt;STRONG&gt;"20220801"&lt;/STRONG&gt;, =&amp;gt; According value selected in slider&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;FONT color="#339966"&gt;end_window_date=&lt;STRONG&gt;"20220901"&lt;/STRONG&gt;, =&amp;gt; According value selected in slider&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;FONT color="#339966"&gt;window_size=7, =&amp;gt; According value selected in slider&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;FONT color="#339966"&gt;ret_output_path=&lt;STRONG&gt;"D:/pythonWorks/whatif/"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;FONT color="#339966"&gt;print (df_res)&lt;/FONT&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 02 Feb 2023 05:34:24 GMT</pubDate>
    <dc:creator>lws</dc:creator>
    <dc:date>2023-02-02T05:34:24Z</dc:date>
    <item>
      <title>How to allow python visual to access folder</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-allow-python-visual-to-access-folder/m-p/3056909#M53630</link>
      <description>&lt;P&gt;Hi everyone, I'm facing problem to run my python script in PowerBi.&lt;/P&gt;&lt;P&gt;I need to let the user to filter fields using slider, and send the value to the python script to run.&lt;/P&gt;&lt;P&gt;But the script is quite complicated which it need to access and refer the pkl files in folder and I'm not sure that the python visual can support this kind of script or not.&lt;/P&gt;&lt;P&gt;I am new in both python and powerbi, need somebody's help to find a good solution on this issue and below is the original python script I need to run. Thanks a lot.&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;FONT color="#339966"&gt;import l1_alg_module&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;import pandas as pd&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;dret_info, df_res, json_res = l1_alg_module.get_shapley(input_data_file=&lt;STRONG&gt;"D:/pythonWorks/whatif/city_daily.csv",&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;FONT color="#339966"&gt;obj_id_col=&lt;STRONG&gt;'city'&lt;/STRONG&gt;,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;FONT color="#339966"&gt;time_id_col=&lt;STRONG&gt;'calendar_date'&lt;/STRONG&gt;,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;FONT color="#339966"&gt;model_file_path=&lt;STRONG&gt;"D:/pythonWorks/whatif/new_city_l1/models/"&lt;/STRONG&gt;, =&amp;gt;pkl files&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;FONT color="#339966"&gt;test_obj_name=&lt;STRONG&gt;"KOTA MEDAN"&lt;/STRONG&gt;, =&amp;gt; According value selected in slider&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;FONT color="#339966"&gt;start_window_date=&lt;STRONG&gt;"20220801"&lt;/STRONG&gt;, =&amp;gt; According value selected in slider&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;FONT color="#339966"&gt;end_window_date=&lt;STRONG&gt;"20220901"&lt;/STRONG&gt;, =&amp;gt; According value selected in slider&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;FONT color="#339966"&gt;window_size=7, =&amp;gt; According value selected in slider&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;FONT color="#339966"&gt;ret_output_path=&lt;STRONG&gt;"D:/pythonWorks/whatif/"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;FONT color="#339966"&gt;print (df_res)&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 02 Feb 2023 05:34:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-allow-python-visual-to-access-folder/m-p/3056909#M53630</guid>
      <dc:creator>lws</dc:creator>
      <dc:date>2023-02-02T05:34:24Z</dc:date>
    </item>
  </channel>
</rss>

