我试图在PowerBI中运行一个简单的Python脚本以使其正常运行,但是它只会出现很多错误。我试图:
- 重新安装Numpy和Matplotlib。
- 使用Python 3.5和3.6尝试
- 卸载Conda并重新安装
我有一个屏幕截图显示了我的问题(所有内容都在一个屏幕下面)。对于x和y,标记为“标签”和“数据”的数据仅为a,b,c和1,2,3。
此处的代码:
# 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(Data,Label)
# dataset = dataset.drop_duplicates()
# Paste or type your script code here:
import matplotlib.pyplot as plt
dataset.plot(kind='scatter',x='Label',y='Data',color='red')
plt.show()