Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi All,
I have imported 3 libraries Seaborn, Pandas & from Scipy.test import ttest _rel to calculate P & R values. I have 2 columns x & y.
Below script works fine in jupyter notebook however can you please help me what should be script for Power Bi
Import Pandas as pd,
Import seaborn as sns,
from Scipy. stats import ttest _rel
pvalue = ttest_rel(df.x,df.y)
pvalue = 1.8489
Many Thanks
Ho @cool_333
I'm not in front of the PC, but:
When you open the script editor I think it mentions in a comment the name of the variable you have to use for the DataFrame - you have to use that exact variable name.
If you want to return something, add it as a column to the dataframe.
Please mark this as answer if it helped.
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 12 | |
| 11 | |
| 7 | |
| 7 | |
| 6 |