1

I have created below code in python for Power BI. This is not showing anything.

    # The following code to create a dataframe and remove duplicated rows is always executed and acts as a preamble for your script: 

    # dataset = pandas.DataFrame(Company, Target)
    # dataset = dataset.drop_duplicates()

    # Paste or type your script code here:
    import matplotlib.pyplot as plt 
    from plotnine import *
    from plotnine.data import mpg

    (ggplot(dataset)         # data 
     + aes(x='Company')    # variable 
     + geom_bar(size=20)) # ype of plot 

    plt.show()
2
  • are you sure that the python code i correct? it looks strange. Commented Sep 2, 2020 at 13:01
  • this is correct as there is not error when I am running. I am writing this in the Power BI python control. Commented Sep 2, 2020 at 13:29

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.