Forum Discussion
Running Python Scripts from Power BI
Hi,
I'm trying to run the example below from Power Bi, however I'm getting the following error:
import pandas as pd
data = [['Alex',10],['Bob',12],['Clarke',13]]
df = pd.DataFrame(data,columns=['Name','Age'],dtype=float)
print (df)
Can anyone help please? I have the python scripting enabled in Power BI and packages installed
thanks!
LauraBueno , Reinstall numpy. make sure you use PIP install
check the description of this video for various command and error solution links
3 Replies
- amitchandak
Super User
LauraBueno , Reinstall numpy. make sure you use PIP install
check the description of this video for various command and error solution links
- LauraBueno
Helper III
amitchandak Thanks a lot! that worked! 🙂
- LauraBueno
Helper III
Hi amitchandak ,
I'm now trying to create a scatter plot with python for two numeric arrays: Experimental and Predicted as shown below.
However I get the following error:
Any help would be really appreciated!
Thank you