Running Python Scripts in Power BI

Поділитися
Вставка
  • Опубліковано 1 сер 2024
  • What's up guys, Parker here. In this tutorial, I show you how to run Python scripts to perform transformations on your dataset. Python is an extremely versatile language that can be used for all sorts of data processing and cleaning! Note: as of the date of posting, Python is only available in Desktop. You can expect it to be available in Service soon!
    Enroll in my introductory or advanced Power BI courses:
    training.bielite.com/
    Elite Power BI Consulting:
    bielite.com/
    Data Insights Tools:
    www.impktful.com/
    Python Download:
    www.python.org/downloads/
  • Наука та технологія

КОМЕНТАРІ • 148

  • @gambu4810
    @gambu4810 2 роки тому

    Absolutely impressive! I'm actually offended that some found it reasonable to dislike this work of art.

  • @michaniedospia4100
    @michaniedospia4100 4 роки тому +5

    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!

    • @BIElite
      @BIElite  4 роки тому

      That's great to hear, Michal!

  • @z058261
    @z058261 5 років тому

    Brill,lots of learning to the core and insightful.Glad I found this.No waffle.

    • @BIElite
      @BIElite  5 років тому

      Thanks for watching!

  • @joostvoncken950
    @joostvoncken950 4 роки тому +3

    nice & fast video, got me started!

  • @Hemantshyontry
    @Hemantshyontry 6 років тому +6

    Thanks for the video...it's really good and quite informative. Keep up the valuable work.

    • @BIElite
      @BIElite  6 років тому

      Thank you Hemant!

  • @baironmanuelvinez720
    @baironmanuelvinez720 4 роки тому +1

    thanks man!!! you're the best.

  • @shwetataral2049
    @shwetataral2049 4 роки тому +1

    Thanks for sharing. Great video to learn :)

  • @stevefox1973
    @stevefox1973 6 років тому +1

    Great Video. Awesome to see that we aren't limited to the python std library.

    • @BIElite
      @BIElite  6 років тому

      +Steve Fox Definitely! Only limitation will be what is supported by Service I assume

  • @EyiBillion
    @EyiBillion 4 роки тому +1

    Brilliant! God bless you

  • @vishalbarge1063
    @vishalbarge1063 Рік тому

    it is really good, I was looking for this solution only

  • @tomtao7406
    @tomtao7406 6 років тому +1

    Great job Parker !

    • @BIElite
      @BIElite  6 років тому

      Thank you Tom!

  • @nizhonglian
    @nizhonglian 5 років тому

    Really a great video, thanks a lot admin.

    • @BIElite
      @BIElite  5 років тому

      +nizhonglian awesome, glad you liked it!

  • @user-pw9vl8vc4k
    @user-pw9vl8vc4k 4 роки тому

    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?

  • @ericGTS
    @ericGTS 2 роки тому

    Thanks for sharing!

  • @baneledludlu7983
    @baneledludlu7983 Рік тому

    thanks man, helpful

  • @igorcardoso8791
    @igorcardoso8791 2 роки тому

    TKS....you helped me much

  • @nerdofilo
    @nerdofilo 4 роки тому

    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?

  • @surajitbaruah606
    @surajitbaruah606 4 роки тому +1

    Nice demo on connecting connecting Python in Power BI.

    • @BIElite
      @BIElite  4 роки тому

      Glad you found this useful, Surajit.

  • @davida6146
    @davida6146 Рік тому +1

    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?

  • @ruanknov
    @ruanknov 4 роки тому +1

    Brilliant ! Thank you Sir

    • @BIElite
      @BIElite  4 роки тому

      No problem, Khanh!

  • @sawankumar2088
    @sawankumar2088 3 роки тому

    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

  • @Missraeraeruru
    @Missraeraeruru 5 років тому

    thanks, that was really helpful :) thumbs up

    • @BIElite
      @BIElite  5 років тому

      Nice! Thanks for the feedback Raerae

  • @luisrzgz
    @luisrzgz 2 роки тому

    Thank you!

  • @affiliatenetwork3533
    @affiliatenetwork3533 4 роки тому

    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?

  • @AnalyzeIt_Nael
    @AnalyzeIt_Nael 5 років тому

    Very great Video. Thanks. What you be the code to slice and return more than one column?

  • @abhishekpachauri4403
    @abhishekpachauri4403 3 роки тому

    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?

  • @sirginirgin4808
    @sirginirgin4808 6 місяців тому

    Very informative with a simple and easy approach explanation Parker. Kindly can you reply with a link for the ML in PBI video.Thanks

  • @xxczerxx
    @xxczerxx Рік тому

    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.

  • @8g8819
    @8g8819 6 років тому +2

    Great video👍👍👍

    • @BIElite
      @BIElite  6 років тому

      Thanks giavo!

  • @alfredsfutterkiste7534
    @alfredsfutterkiste7534 3 роки тому

    What is the advantage of using built-in PQ transformations vs doing everything in pandas?

  • @santoshkumarrowlo1866
    @santoshkumarrowlo1866 5 років тому

    Thanks for the good information

    • @BIElite
      @BIElite  5 років тому

      +SantoshKumar Rowlo No problem!

  • @SpiritOfIndiaaa
    @SpiritOfIndiaaa 3 місяці тому

    How are you loading dataframe ,if the data is in s3 of AWS ?

  • @72tfox
    @72tfox 4 роки тому

    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?

  • @markbaich2211
    @markbaich2211 6 років тому +8

    Great video. Might want to mention that Python is currently only supported in the PBI Desktop version, not the web service.

    • @BIElite
      @BIElite  6 років тому +1

      +Mark Baich very good point. I'll add it in the description!

    • @fabiotradigo
      @fabiotradigo 5 років тому

      @@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?

    • @jatoday
      @jatoday 4 роки тому

      With personal data gateways the data can still be accessible to the PBI service.

  • @johnsummer3792
    @johnsummer3792 2 роки тому

    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 ?

  • @karimfarghaly8153
    @karimfarghaly8153 2 роки тому

    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

  • @victormendoza-ey4jl
    @victormendoza-ey4jl 4 роки тому

    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

  • @kuuuyajim
    @kuuuyajim 11 місяців тому

    We're mostly working with Power BI dataflows so I'm wondering if this will run on the workspace.

  • @bruceclark406
    @bruceclark406 6 років тому

    Great vid! Thank you very much!

    • @BIElite
      @BIElite  6 років тому

      Thanks Bruce!

    • @bruceclark406
      @bruceclark406 6 років тому

      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?

    • @BIElite
      @BIElite  6 років тому

      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.

  • @KulturanCov
    @KulturanCov Рік тому

    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?

  • @ML.ArtificialIntelligence
    @ML.ArtificialIntelligence Рік тому

    Hey great video what if I published this report that contains python will it work ?

  • @DustedMe
    @DustedMe 3 роки тому +1

    thanks a lot!

  • @asadrauf7111
    @asadrauf7111 5 років тому +2

    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!

    • @BIElite
      @BIElite  5 років тому +1

      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!

    • @asadrauf7111
      @asadrauf7111 5 років тому

      @@BIElite Great! Thank you very much :)

  • @RobertoRuiz-bw8ln
    @RobertoRuiz-bw8ln 4 роки тому

    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

    • @BIElite
      @BIElite  4 роки тому

      Gracias por ver. Consulte esta explicación en video: ua-cam.com/video/Z40Txux1Lxk/v-deo.html

  • @harishd2357
    @harishd2357 4 роки тому

    Can you please do one tutorial how to import data from amazon s3 to power BI ?

  • @xz7525
    @xz7525 5 років тому

    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?

    • @BIElite
      @BIElite  5 років тому

      +D N ooh that’s a tough one. I’ve done this successfully with DAX but never with Python. Not sure I know how!

  • @BrendanMetcalfe
    @BrendanMetcalfe 4 роки тому

    Nice video!

    • @BIElite
      @BIElite  4 роки тому

      Thanks Brendan!

  • @tw242
    @tw242 6 років тому

    Its taking 10x as long to run in BI (instead of CLI). Saw some forum threads on the same issue, any suggestions?

    • @BIElite
      @BIElite  6 років тому

      +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

  • @Rahul-wi7xn
    @Rahul-wi7xn 5 років тому +2

    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 :) )

    • @BIElite
      @BIElite  5 років тому

      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!

  • @MubiiOxx
    @MubiiOxx 5 років тому +3

    Hey man
    what are the main differences between using python and R? and what do you recommand?

    • @peterg4130
      @peterg4130 4 роки тому

      R is pure stats. Python can do stats, plus a lot more

  • @viniciusferreirasaldanhasi623
    @viniciusferreirasaldanhasi623 3 роки тому

    Oh man, you help me solve this fucking problem between python packages and pbi. Thanks a lot.

  • @vishalpawashe9487
    @vishalpawashe9487 5 років тому +2

    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
      @BIElite  5 років тому

      +Vishal Pawashe yeah definitely! Do you have any recommendations? I'm always looking for ideas

    • @vishalpawashe9487
      @vishalpawashe9487 5 років тому +1

      @@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 :)

    • @BIElite
      @BIElite  5 років тому

      +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

    • @vishalpawashe9487
      @vishalpawashe9487 5 років тому

      @@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.

  • @kavinyudhitia
    @kavinyudhitia Рік тому

    Niceeeeeeeeee thanksss

  • @JamesManjackalMSFS
    @JamesManjackalMSFS 6 років тому +1

    Does it work from the Power Bi Service?

    • @BIElite
      @BIElite  6 років тому

      Not yet, but should be available soon!

  • @14robisco
    @14robisco 5 років тому +1

    Great video - could you share the sample data you were using?

    • @BIElite
      @BIElite  5 років тому

      +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"

  • @HordyJ
    @HordyJ 5 років тому +1

    Can you run from an IDE like Visual Studio Code?

    • @BIElite
      @BIElite  5 років тому

      I believe so! Under Options, go to "Python" and there is a section for detected IDEs. Try to specify VS Code there

  • @asadrauf7111
    @asadrauf7111 5 років тому +1

    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?

    • @BIElite
      @BIElite  5 років тому

      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?

    • @asadrauf7111
      @asadrauf7111 5 років тому

      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.

  • @ml6352
    @ml6352 5 років тому +1

    Great video! Thanks! Just a question: Would this work as well when using Jupyter Notebooks or must I have installed the 'normal' Python? Thanks

    • @MrDeware80
      @MrDeware80 4 роки тому

      I have Anaconda installled (includes Jupyter) and this works fine.

  • @im4485
    @im4485 3 роки тому +1

    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?

  • @vslaser
    @vslaser 4 роки тому

    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?

    • @BIElite
      @BIElite  4 роки тому

      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.

  • @thiruppathithiru9222
    @thiruppathithiru9222 4 роки тому

    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 )

    • @dawidgrzeskow2682
      @dawidgrzeskow2682 3 роки тому

      import pandas as pd
      df = pd.read_csv("path to your file")
      df.to_excel("name.xlsx")

  • @bryanurizar
    @bryanurizar 4 роки тому +1

    Is the python syntax here specific to Power BI or would just learning pandas be enough to then use in Power BI?

    • @BIElite
      @BIElite  4 роки тому

      Nothing specific to Power BI. Knowledge of pandas would be more than enough!

    • @bryanurizar
      @bryanurizar 4 роки тому +1

      @@BIElite Would that also mean that I wouldn't have to learn M or DAX? and I could just use Pandas?

  • @Buitre71
    @Buitre71 4 роки тому

    Is it possible to create relationships between tables from a py script?

    • @BIElite
      @BIElite  4 роки тому

      I don't think this is possible, unfortunately.

  • @luigineri4364
    @luigineri4364 5 років тому +2

    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?

    • @BIElite
      @BIElite  5 років тому +1

      Haha good question. I don't know why I did that!

    • @PatrickBateman12420
      @PatrickBateman12420 5 років тому

      @@BIElite Good answer. As Python/Panda fans, we still loved doing data munging with Python/Pandas. Thanks for sharing.

    • @yashasvityagi
      @yashasvityagi 4 роки тому

      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.

  • @phamviet1504
    @phamviet1504 6 років тому

    How to get this version ? I updated newest version of PowerBI but don't see Python feature.

    • @BIElite
      @BIElite  6 років тому

      +pham viet you will need to enable it in the preview features and then restart Power BI

    • @phamviet1504
      @phamviet1504 6 років тому

      I got it. Thanks for your support :D

  • @BigBear17
    @BigBear17 5 років тому +1

    Can I run my python script to scrape web data then store and display this on powerbi

    • @BIElite
      @BIElite  5 років тому +1

      +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

    • @FPrimeHD1618
      @FPrimeHD1618 5 років тому +1

      Was just about to ask this lol!

    • @BIElite
      @BIElite  5 років тому

      Haha hopefully you get it working

  • @retamapark
    @retamapark 4 роки тому +1

    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.

    • @BIElite
      @BIElite  4 роки тому

      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/

    • @retamapark
      @retamapark 4 роки тому

      @@BIElite Thank you for the reference. It is helpful.

  • @kiwimaori2001
    @kiwimaori2001 5 років тому

    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.

    • @Sam-jg5zv
      @Sam-jg5zv 5 років тому

      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.

    • @kiwimaori2001
      @kiwimaori2001 5 років тому

      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?

    • @Sam-jg5zv
      @Sam-jg5zv 5 років тому

      @@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.

    • @kiwimaori2001
      @kiwimaori2001 5 років тому

      Sam thanks for the advise
      I have the june version 2019 installed, I update the installation on a monthly base

  • @richardgavatin2592
    @richardgavatin2592 2 роки тому

    Cool

  • @laxoholic23
    @laxoholic23 4 роки тому +1

    4:50 AM? Good for you lol great video thanks for posting.

    • @BIElite
      @BIElite  4 роки тому +1

      Hahaha I used to get up super early to make these

  • @danielfield7464
    @danielfield7464 3 роки тому +1

    Nice. This comment is here for the algorithm boost.

    • @BIElite
      @BIElite  3 роки тому

      Haha thank you Daniel!

  • @neilmurphy7064
    @neilmurphy7064 4 роки тому

    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.

    • @BIElite
      @BIElite  4 роки тому +1

      Hi Neil, it’s likely that I added an unnecessary line. Thanks for bringing this up.

  • @smanalyst666
    @smanalyst666 5 років тому +1

    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
    ------------------------

    • @smanalyst666
      @smanalyst666 5 років тому +1

      Hi Parker, ok, it's resolved now after addition install of matplotlib using pip in python. Wonderful. Thank you.

    • @BIElite
      @BIElite  5 років тому

      Nice! Glad you figured it out

  • @sadyaz64
    @sadyaz64 6 років тому +2

    Python un power bi it promises.thanks

    • @BIElite
      @BIElite  6 років тому +1

      +sadyaz64 yes, definitely. Looking forward to doing a lot with it

  • @littlekatyush2110
    @littlekatyush2110 4 роки тому

    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')])

    • @BIElite
      @BIElite  4 роки тому

      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.

  • @jeremyfirth
    @jeremyfirth 6 років тому

    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.

    • @BIElite
      @BIElite  6 років тому

      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

    • @jeremyfirth
      @jeremyfirth 6 років тому

      Yeah it was my headphones. Sorry about that.

    • @BIElite
      @BIElite  6 років тому

      Good to hear that you got it figured out!

  • @filosofiadetalhista
    @filosofiadetalhista 2 роки тому

    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!

  • @muhammadchoudhry5864
    @muhammadchoudhry5864 2 роки тому

    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

  • @melvin9993
    @melvin9993 3 роки тому

    Cool