@@BIElite If I set a Python script on a Power Bi file from Desktop version and I publish it, is it going to work dynamically when people access from online version?
Can you use python as a means to import data into Power BI (for instance thought want to web scrape data directly into Power BI or you want to retrieve all file names from a specific folder and create a table based on those file names in Power BI?
Hi at 3:38 I keep getting my error message that power BI cannot find panda / numpy. while in the command line my comp tells me "Requirement already satisfied: pandas in c:\programdata\anaconda3" Is there anybody with tips what to do? Thanks in advance.
@@kiwimaori2001 I don't think Python/Anaconda references to Power BI, only Power BI does the referencing since it is doing the importing. You can try installing the latest version of Power BI. Previously, I was using an old version of Power BI and Python scripting was not available.
Hi I am trying to install pandas but it is giving me below- 'py' is not recognised as an internal or external command, operable program or batch file. What should I do?
I've got a problem saving the table changes and am not sure what might be the cause. The error I receive says the following: "Failed to save modifications to the server. Error returned: 'Expression in partition 'n/a' in table 'n/a' references unknown variable or function 'Python.Execute'. '." the only solution I was able to find is to disable the Store datasets using enhanced metadata format, but it did not help. Any ideas what else might be?
I am working with mac, I run power bi on a virtual machine. To use python with power bi should I install Python for windows? Or it can work ( integration ) with mac os
that's really great , i been using python in pbi but recently i have to publish all my reports in workspace and data set refresh is not working since python is pointing to my desktop, how could we resolve that ?
Is there a discernible advantage/use case for running Python scripts in PBI, versus the standard power query methods? I can't think of many off the top of my head.
muchas gracias por la explicación. Una consulta de acuerdo a lo que vi se ejecuta con normalidad dentro de PowerQuery. Pero para ejecutar ese script en la parte visual en el dashboard con el icono de phyton?. Gracias de antemano
I’ve built a report to capture data from my bank transactions, but one of my bank’s exports comes with 12 completely blank rows before the transactions start. I figured one way around this is to merge all columns then delete rows that are still (null). But would there be a way to eliminate those rows with python?
I am trying to run a Python visualisation within Power BI but I get an exception called "microsoft.power bi.export service common.contain pii exception". Do you know how to solve that?
Just wondering .. if you manage to display a table using pandas python in PowerBI.. would you be able to use it as filter for the other visual components?
Hey Parker, there are only a few channels on youtube that make good educational content. Yours is the best for all things related to BI. So, first thanks mate! Now, in this video, you mentioned that you'd be making more python videos (ML for predicting missing values). Is that plan still operational or have you decided not to do that? Either way thank you very much man!
Thanks Asad! I've been meaning to make videos on this topic for quite a while but never got around to it. Glad to hear that there is some interest! I will definitely cover it at some point then. Thanks for bringing this up!
Hi Parker, sorry to bug you again but I can't find a way around this. I am trying to run a python script within my query on a data that is taken from Google BigQuery. However, Power BI gives me a security warning that I can't use python script unless I make my data public. However, my data is confidential and I can't make it public. Am I doing something wrong?
Hey Asad! Sorry for the late response. When running Python or R scripts, it usually gives me the same warning. What are you doing in the Python script?
Hey Parker! always good to hear from you. What i am trying to do with it can be summed up with this python one-liner df.loc[df.condition_column in ['foo, 'bar'], 'Group'] = df.Group.replace(my_dictionary). Simply put I have to replace a few values in a column named Group with the help of a dictionary called my_dictionary; but only do this if the column called condition column contains either 'foo' or 'bar'. I hope this makes sense.
+Neal Virtudes Yes you can! You just need to make sure that you are storing the scraped data in a pandas data frame. Then you can select this data frame in the step following your Python script and your data will be available
Thanks Parkar i was searching this kind of videos related to Power BI and Python together from very Long time. Parkar have you made more videos of this kind please share the link
At 5:00 you call pandas.DataFrame to create a dataframe out of dataset, which is already a dataframe. This doesn't make sense to me. Is this something that needs to be done in Power BI? Nice video, thansk for sharing.
Hi Parker,nice video. I have one question.I have a power bi data visualization dashboard and i wanted to do automation testing to verify that the data displayed in the dashboard is as expected ? can i use python for the same? if yes, do you have any reference to help me to learn that part ? (Disclaimer: Beginner in Python :) )
+14robisco thanks! I used the wine dataset that you can find at: archive.ics.uci.edu/ml/datasets/wine I manually removed some values to create "missing data"
Thanks Parker. Just a quick question; for a data set requiring an interpolation of a missing value (economic time series for example): how would we represent the fillna function with the average of the adjunct cells around the point in time?
Thanks for this wonderful video. Also, would it be possible to make a video on more features of Python which can be used in Power BI which would relate to the real world projects/uses
@@BIElite I was thinking more on the below points: 1. Any possible way we can use python datasets to analyze/process the data so that we don't need to use complex DAX formulas, which I guess is harder to understand 2. Any way we can create a new dataset based on processing existing table and populate that into new Table of Power BI ( Something we do using AUTOCALENDER DAX) 3. A video specially based on working with datasets using pandas for POWER BI - There are lot of videos on working with datasets but nothing which will help for POWER BI 4. As we have a lot of visualizations in Power BI, so need to find features which we can only get using python and not using the default visuals 5. One important thing which came into my mind is can we develop a code using PyCharm and paste that in Python Power BI Editor -this will make coding fast and bug-free Why not use the power of Python Language in Power BI. Let me know if the above points make any sense :)
+Vishal Pawashe I love these ideas! Thanks so much for sharing them all. I've added them to my list of topics to make videos about (given that I would need to learn a bit of the technologies you listed). But I definitely think that a couple of these would be nice for a video here soon
@@BIElite Also one more thing which always interests is the Custom Visual Called as 'Sankey Diagram ' using which we can track the flow of objects, this works best with a table/column chart to see the flow better. Actually, I used this for one of my clients where we used to track how users navigate through the website to get to a particular product on the website.
This is a very interesting video. Thank you. I would like to filter rows based on the value in a column. For example, filter all records where the value of the field State is equal to "TX". Use an IF statement. if 'State' = "TX" ... Can you point me to a resource? Thanks.
+Tug Witt lol the thread you may have seen was probably the question I posted... a simple Python visual was taking 45 seconds to complete. I guess we had different problems though because mine was because Python was slow on my machine (from the CLI). So it made sense that Python in Power bi would be slow too. When I went home and installed Python on my personal machine, everything ran at a reasonable rate. Sorry, I wish I could help you but it seems your problem is different because it is running smoothly on your machine
Hi and thank you for the video. I am just getting into Power Q, Bi and Pivot. I just replicated these steps in the video and it made me wonder: Can I just use python or do I still need to learn M or DAX?
Sir, can u help me, i wonderin, how to filter some data with the Power Bi Python Script. I try to filter the data with Editor, and its went well, but when i try to do it on the Power BI, the data wasnt change, and there is no error. pls help, ive tried the solution everywhere, even the link u give to the guys named Stave Ross. This is my code on my editor : import pandas as pd data = pd.read_csv('D:\Kuliah\MAKALAH\Probabilitas\Week 16\Pasti\GlobalLandTemperaturesByCountry.csv') df = pd.DataFrame(data) print(df.dropna()[(df.Country == 'Indonesia') | (df.Country == 'Singapore')]) And this is what i use on Power Bi import pandas as pd df = pd.DataFrame(dataset) print(df.dropna()[(df.Country == 'Indonesia') | (df.Country == 'Singapore')])
Hi there, you don't want to print the result. You simply need to assign it to another dataframe. For example, instead of the print statement, add a line that says: df2 = df.dropna()[(df.Country == 'Indonesia') | (df.Country == 'Singapore')] Then select df2 in the navigation step of the result.
Maybe you can help me, When I try to run the python script PBI asks me to assign privacy levels. I assign both my python script and my imported data a private privacy level and then Power Bi throws me an error saying"Formula.Firewall: Query 'Power_BI_Data_Dump_Pro_lst001' (step 'Run Python script') is accessing data sources that have privacy levels which cannot be used together. Please rebuild this data combination." I have tried different privacy settings but I always get this error. Any thoughts?
Sorry it took me so long to circle back to this. Did you find a fix for your issue? I ran into this once after selection Private and could not then change the privacy settings to make it work properly. I started over from the point before I imported a Python script and then selected Organizational and then it worked for me.
I'm listening to this in headphones and it's only coming out of the right side. It's very distracting. In your video editing software, there should be an option to pan the audio both channels. I would definitely do that to make your videos headphone-friendly.
Hi Parker, thanks for this real valuable help. I tried these steps, however, after successful install of Pandas, I still have this following message and no data set returned. Thanks a million. -----------------Error message as below after install of Pandas and Refresh of Python sript result) DataSource.Error: ADO.NET: Python script error. Traceback (most recent call last): File "PythonScriptWrapper.PY", line 2, in import os, pandas, matplotlib.pyplot ModuleNotFoundError: No module named 'matplotlib' Details: DataSourceKind=Python DataSourcePath=Python Message=Python script error. Traceback (most recent call last): File "PythonScriptWrapper.PY", line 2, in import os, pandas, matplotlib.pyplot ModuleNotFoundError: No module named 'matplotlib' ErrorCode=-2147467259 ExceptionType=Microsoft.PowerBI.Scripting.Python.Exceptions.PythonScriptRuntimeException ------------------------
Feedback: Not what I needed. Consider explaining how to create measure-like objects using Python. I don't want to create new columns in PowerQuery. Thanks!
I am getting the error below: Checked online, and tried everything from the forums but still the same error. DataSource.Error: ADO.NET: A problem occurred while processing your Python script. Here are the technical details: [DataFormat.Error] Invalid cell value '#N/A'. Details: DataSourceKind=Python DataSourcePath=Python Message=A problem occurred while processing your Python script. Here are the technical details: [DataFormat.Error] Invalid cell value '#N/A'. ErrorCode=-2147467259 ExceptionType=Microsoft.PowerBI.Scripting.Python.Exceptions.PythonUnexpectedException
Like it, great! I'm using Python at work and lately we are moving to presenting data with Power BI and finally I know to to merge them both!
That's great to hear, Michal!
Absolutely impressive! I'm actually offended that some found it reasonable to dislike this work of art.
Great video. Might want to mention that Python is currently only supported in the PBI Desktop version, not the web service.
+Mark Baich very good point. I'll add it in the description!
@@BIElite If I set a Python script on a Power Bi file from Desktop version and I publish it, is it going to work dynamically when people access from online version?
With personal data gateways the data can still be accessible to the PBI service.
Great Video. Awesome to see that we aren't limited to the python std library.
+Steve Fox Definitely! Only limitation will be what is supported by Service I assume
Can you use python as a means to import data into Power BI (for instance thought want to web scrape data directly into Power BI or you want to retrieve all file names from a specific folder and create a table based on those file names in Power BI?
Why is Run Python not available in Excels version of Power Query? This is so frustrating. Anyone know if this feature is coming any time soon?
How are you loading dataframe ,if the data is in s3 of AWS ?
Hi at 3:38 I keep getting my error message that power BI cannot find panda / numpy. while in the command line my comp tells me "Requirement already satisfied: pandas in c:\programdata\anaconda3"
Is there anybody with tips what to do?
Thanks in advance.
you might want to check where Python your Power BI is referencing. If it is not referencing to your anaconda location, you might want to change it.
Sam In my PowerBI settings I read the Anaconda directory.
Can I check Python settings where Power BI is referencing? How do I do this?
@@kiwimaori2001 I don't think Python/Anaconda references to Power BI, only Power BI does the referencing since it is doing the importing. You can try installing the latest version of Power BI. Previously, I was using an old version of Power BI and Python scripting was not available.
Sam thanks for the advise
I have the june version 2019 installed, I update the installation on a monthly base
Nice demo on connecting connecting Python in Power BI.
Glad you found this useful, Surajit.
Hi I am trying to install pandas but it is giving me below- 'py' is not recognised as an internal or external command, operable program or batch file. What should I do?
Brill,lots of learning to the core and insightful.Glad I found this.No waffle.
Thanks for watching!
Thanks for the video...it's really good and quite informative. Keep up the valuable work.
Thank you Hemant!
I've got a problem saving the table changes and am not sure what might be the cause. The error I receive says the following:
"Failed to save modifications to the server. Error returned: 'Expression in partition 'n/a' in table 'n/a' references unknown variable or function 'Python.Execute'.
'."
the only solution I was able to find is to disable the Store datasets using enhanced metadata format, but it did not help. Any ideas what else might be?
I am working with mac, I run power bi on a virtual machine. To use python with power bi should I install Python for windows? Or it can work ( integration ) with mac os
that's really great , i been using python in pbi but recently i have to publish all my reports in workspace and data set refresh is not working since python is pointing to my desktop, how could we resolve that ?
We're mostly working with Power BI dataflows so I'm wondering if this will run on the workspace.
Hey great video what if I published this report that contains python will it work ?
Can you create and offline Edit_Data.py file and have Power Bi run the Edit_Data.py using the python.exe which is running these scripts anyway?
Is there a discernible advantage/use case for running Python scripts in PBI, versus the standard power query methods? I can't think of many off the top of my head.
Very informative with a simple and easy approach explanation Parker. Kindly can you reply with a link for the ML in PBI video.Thanks
nice & fast video, got me started!
muchas gracias por la explicación. Una consulta de acuerdo a lo que vi se ejecuta con normalidad dentro de PowerQuery. Pero para ejecutar ese script en la parte visual en el dashboard con el icono de phyton?.
Gracias de antemano
Gracias por ver. Consulte esta explicación en video: ua-cam.com/video/Z40Txux1Lxk/v-deo.html
Como coloco mi Power BI en color oscuro?
Is the python syntax here specific to Power BI or would just learning pandas be enough to then use in Power BI?
Nothing specific to Power BI. Knowledge of pandas would be more than enough!
@@BIElite Would that also mean that I wouldn't have to learn M or DAX? and I could just use Pandas?
I’ve built a report to capture data from my bank transactions, but one of my bank’s exports comes with 12 completely blank rows before the transactions start. I figured one way around this is to merge all columns then delete rows that are still (null). But would there be a way to eliminate those rows with python?
I am trying to run a Python visualisation within Power BI but I get an exception called "microsoft.power bi.export service common.contain pii exception". Do you know how to solve that?
I think I received a similar error a couple months ago. I had to resort to installing Python 2.7 and it worked out. Not a great fix though.
Just wondering .. if you manage to display a table using pandas python in PowerBI.. would you be able to use it as filter for the other visual components?
Very great Video. Thanks. What you be the code to slice and return more than one column?
Hi, great video. Why didn't you start Power Query (Edit Query) and then you load the data instead of coming back from Power BI to Power Query?
Haha good question. I don't know why I did that!
@@BIElite Good answer. As Python/Panda fans, we still loved doing data munging with Python/Pandas. Thanks for sharing.
As a power bi user user and experience both in edit query and python script. Its way easier to transform your data in python script.
Hey Parker, there are only a few channels on youtube that make good educational content. Yours is the best for all things related to BI. So, first thanks mate! Now, in this video, you mentioned that you'd be making more python videos (ML for predicting missing values). Is that plan still operational or have you decided not to do that? Either way thank you very much man!
Thanks Asad! I've been meaning to make videos on this topic for quite a while but never got around to it. Glad to hear that there is some interest! I will definitely cover it at some point then. Thanks for bringing this up!
@@BIElite Great! Thank you very much :)
Does it work from the Power Bi Service?
Not yet, but should be available soon!
What is the advantage of using built-in PQ transformations vs doing everything in pandas?
Hi Parker, sorry to bug you again but I can't find a way around this. I am trying to run a python script within my query on a data that is taken from Google BigQuery. However, Power BI gives me a security warning that I can't use python script unless I make my data public. However, my data is confidential and I can't make it public. Am I doing something wrong?
Hey Asad! Sorry for the late response. When running Python or R scripts, it usually gives me the same warning. What are you doing in the Python script?
Hey Parker! always good to hear from you. What i am trying to do with it can be summed up with this python one-liner df.loc[df.condition_column in ['foo, 'bar'], 'Group'] = df.Group.replace(my_dictionary). Simply put I have to replace a few values in a column named Group with the help of a dictionary called my_dictionary; but only do this if the column called condition column contains either 'foo' or 'bar'. I hope this makes sense.
Can I run my python script to scrape web data then store and display this on powerbi
+Neal Virtudes Yes you can! You just need to make sure that you are storing the scraped data in a pandas data frame. Then you can select this data frame in the step following your Python script and your data will be available
Was just about to ask this lol!
Haha hopefully you get it working
Great job Parker !
Thank you Tom!
Hey man
what are the main differences between using python and R? and what do you recommand?
R is pure stats. Python can do stats, plus a lot more
Is it possible to create relationships between tables from a py script?
I don't think this is possible, unfortunately.
Thanks Parkar i was searching this kind of videos related to Power BI and Python together
from very Long time.
Parkar have you made more videos of this kind please share the link
At 5:00 you call pandas.DataFrame to create a dataframe out of dataset, which is already a dataframe. This doesn't make sense to me. Is this something that needs to be done in Power BI? Nice video, thansk for sharing.
Hi Neil, it’s likely that I added an unnecessary line. Thanks for bringing this up.
Hi Parker,nice video. I have one question.I have a power bi data visualization dashboard and i wanted to do automation testing to verify that the data displayed in the dashboard is as expected ? can i use python for the same? if yes, do you have any reference to help me to learn that part ? (Disclaimer: Beginner in Python :) )
Good question, Rahul. I don't know of any methods to test the data via Python. I wish I could be of more help to you!
Great video - could you share the sample data you were using?
+14robisco thanks! I used the wine dataset that you can find at: archive.ics.uci.edu/ml/datasets/wine
I manually removed some values to create "missing data"
How to get this version ? I updated newest version of PowerBI but don't see Python feature.
+pham viet you will need to enable it in the preview features and then restart Power BI
I got it. Thanks for your support :D
Thanks Parker. Just a quick question; for a data set requiring an interpolation of a missing value (economic time series for example): how would we represent the fillna function with the average of the adjunct cells around the point in time?
+D N ooh that’s a tough one. I’ve done this successfully with DAX but never with Python. Not sure I know how!
Thanks for this wonderful video. Also, would it be possible to make a video on more features of Python which can be used in Power BI which would relate to the real world projects/uses
+Vishal Pawashe yeah definitely! Do you have any recommendations? I'm always looking for ideas
@@BIElite I was thinking more on the below points:
1. Any possible way we can use python datasets to analyze/process the data so that we don't need to use complex DAX formulas, which I guess is harder to understand
2. Any way we can create a new dataset based on processing existing table and populate that into new Table of Power BI ( Something we do using AUTOCALENDER DAX)
3. A video specially based on working with datasets using pandas for POWER BI - There are lot of videos on working with datasets but nothing which will help for POWER BI
4. As we have a lot of visualizations in Power BI, so need to find features which we can only get using python and not using the default visuals
5. One important thing which came into my mind is can we develop a code using PyCharm and paste that in Python Power BI Editor -this will make coding fast and bug-free
Why not use the power of Python Language in Power BI.
Let me know if the above points make any sense :)
+Vishal Pawashe I love these ideas! Thanks so much for sharing them all. I've added them to my list of topics to make videos about (given that I would need to learn a bit of the technologies you listed). But I definitely think that a couple of these would be nice for a video here soon
@@BIElite Also one more thing which always interests is the Custom Visual Called as 'Sankey Diagram ' using which we can track the flow of objects, this works best with a table/column chart to see the flow better.
Actually, I used this for one of my clients where we used to track how users navigate through the website to get to a particular product on the website.
it is really good, I was looking for this solution only
This is a very interesting video. Thank you. I would like to filter rows based on the value in a column. For example, filter all records where the value of the field State is equal to "TX". Use an IF statement. if 'State' = "TX" ... Can you point me to a resource? Thanks.
Hey Steve, here's a good blog post on this: cmdlinetips.com/2018/02/how-to-subset-pandas-dataframe-based-on-values-of-a-column/
@@BIElite Thank you for the reference. It is helpful.
Hi...your video is really amazing. I have a question....do you know how i can pass a measure into a variable in python?. Is possible?. Thanks
Can you run from an IDE like Visual Studio Code?
I believe so! Under Options, go to "Python" and there is a section for detected IDEs. Try to specify VS Code there
Brilliant ! Thank you Sir
No problem, Khanh!
Thanks for sharing. Great video to learn :)
thanks man!!! you're the best.
Its taking 10x as long to run in BI (instead of CLI). Saw some forum threads on the same issue, any suggestions?
+Tug Witt lol the thread you may have seen was probably the question I posted... a simple Python visual was taking 45 seconds to complete. I guess we had different problems though because mine was because Python was slow on my machine (from the CLI). So it made sense that Python in Power bi would be slow too. When I went home and installed Python on my personal machine, everything ran at a reasonable rate. Sorry, I wish I could help you but it seems your problem is different because it is running smoothly on your machine
Brilliant! God bless you
Can you please do one tutorial how to import data from amazon s3 to power BI ?
Thanks for sharing!
Really a great video, thanks a lot admin.
+nizhonglian awesome, glad you liked it!
Oh man, you help me solve this fucking problem between python packages and pbi. Thanks a lot.
Great video👍👍👍
Thanks giavo!
thanks man, helpful
Thanks for this wonderful video.... How to export Entire Page ( with visual ) into csv file Can you please explain Me. (Using Python or R scripting )
import pandas as pd
df = pd.read_csv("path to your file")
df.to_excel("name.xlsx")
TKS....you helped me much
Hi and thank you for the video. I am just getting into Power Q, Bi and Pivot. I just replicated these steps in the video and it made me wonder: Can I just use python or do I still need to learn M or DAX?
Sir, can u help me, i wonderin, how to filter some data with the Power Bi Python Script. I try to filter the data with Editor, and its went well, but when i try to do it on the Power BI, the data wasnt change, and there is no error. pls help, ive tried the solution everywhere, even the link u give to the guys named Stave Ross.
This is my code on my editor :
import pandas as pd
data = pd.read_csv('D:\Kuliah\MAKALAH\Probabilitas\Week 16\Pasti\GlobalLandTemperaturesByCountry.csv')
df = pd.DataFrame(data)
print(df.dropna()[(df.Country == 'Indonesia') | (df.Country == 'Singapore')])
And this is what i use on Power Bi
import pandas as pd
df = pd.DataFrame(dataset)
print(df.dropna()[(df.Country == 'Indonesia') | (df.Country == 'Singapore')])
Hi there, you don't want to print the result. You simply need to assign it to another dataframe. For example, instead of the print statement, add a line that says: df2 = df.dropna()[(df.Country == 'Indonesia') | (df.Country == 'Singapore')]
Then select df2 in the navigation step of the result.
Great vid! Thank you very much!
Thanks Bruce!
Maybe you can help me,
When I try to run the python script PBI asks me to assign privacy levels. I assign both my python script and my imported data a private privacy level and then Power Bi throws me an error saying"Formula.Firewall: Query 'Power_BI_Data_Dump_Pro_lst001' (step 'Run Python script') is accessing data sources that have privacy levels which cannot be used together. Please rebuild this data combination."
I have tried different privacy settings but I always get this error. Any thoughts?
Sorry it took me so long to circle back to this. Did you find a fix for your issue? I ran into this once after selection Private and could not then change the privacy settings to make it work properly. I started over from the point before I imported a Python script and then selected Organizational and then it worked for me.
Thanks for the good information
+SantoshKumar Rowlo No problem!
thanks, that was really helpful :) thumbs up
Nice! Thanks for the feedback Raerae
Nice video!
Thanks Brendan!
Great video! Thanks! Just a question: Would this work as well when using Jupyter Notebooks or must I have installed the 'normal' Python? Thanks
I have Anaconda installled (includes Jupyter) and this works fine.
Thank you!
thanks a lot!
No problem!
Nice. This comment is here for the algorithm boost.
Haha thank you Daniel!
4:50 AM? Good for you lol great video thanks for posting.
Hahaha I used to get up super early to make these
I'm listening to this in headphones and it's only coming out of the right side. It's very distracting. In your video editing software, there should be an option to pan the audio both channels. I would definitely do that to make your videos headphone-friendly.
Hmm I appreciate the comment and feedback but it's working fine in my headphones. Any chance that it's on your end? Let me know
Yeah it was my headphones. Sorry about that.
Good to hear that you got it figured out!
Hi Parker, thanks for this real valuable help. I tried these steps, however, after successful install of Pandas, I still have this following message and no data set returned.
Thanks a million.
-----------------Error message as below after install of Pandas and Refresh of Python sript result)
DataSource.Error: ADO.NET: Python script error.
Traceback (most recent call last):
File "PythonScriptWrapper.PY", line 2, in
import os, pandas, matplotlib.pyplot
ModuleNotFoundError: No module named 'matplotlib'
Details:
DataSourceKind=Python
DataSourcePath=Python
Message=Python script error.
Traceback (most recent call last):
File "PythonScriptWrapper.PY", line 2, in
import os, pandas, matplotlib.pyplot
ModuleNotFoundError: No module named 'matplotlib'
ErrorCode=-2147467259
ExceptionType=Microsoft.PowerBI.Scripting.Python.Exceptions.PythonScriptRuntimeException
------------------------
Hi Parker, ok, it's resolved now after addition install of matplotlib using pip in python. Wonderful. Thank you.
Nice! Glad you figured it out
Niceeeeeeeeee thanksss
Python un power bi it promises.thanks
+sadyaz64 yes, definitely. Looking forward to doing a lot with it
Cool
Feedback: Not what I needed. Consider explaining how to create measure-like objects using Python. I don't want to create new columns in PowerQuery. Thanks!
I am getting the error below: Checked online, and tried everything from the forums but still the same error.
DataSource.Error: ADO.NET: A problem occurred while processing your Python script.
Here are the technical details: [DataFormat.Error] Invalid cell value '#N/A'.
Details:
DataSourceKind=Python
DataSourcePath=Python
Message=A problem occurred while processing your Python script.
Here are the technical details: [DataFormat.Error] Invalid cell value '#N/A'.
ErrorCode=-2147467259
ExceptionType=Microsoft.PowerBI.Scripting.Python.Exceptions.PythonUnexpectedException
Cool