在python中使用ggplot进行Power BI

问题描述

我已经在python中为Power BI创建了以下代码。这什么也没显示

    # 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()

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)