Forum Discussion

LauraBueno's avatar
LauraBueno
Icon for Helper III rankHelper III
5 years ago
Solved

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!

3 Replies