Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I'm trying to use the LDA topic modeling algorithm inside Power BI.
My python environement has the version Python 3.8.17
I'm trying to run a Python script inside Power BI
from pycaret.nlp import * dataset = get_topics(dataset, text='cons', model='lda', num_topics=6,learning_decay=0.7)
This error I get:
I'm using currently Pycaret version 3.0.4. I tried to downgrade the version of Pycaret to 2.3.10 but other packages will be affected and somehow it starts to generate version confusion for me.
DataSource.Error: ADO.NET: Python script error. <pi>KeyError: 'layout' During handling of the above exception, another exception occurred: NotImplementedError: Cannot </pi> Details: DataSourceKind=Python DataSourcePath=Python Message=Python script error. <pi>KeyError: 'layout' During handling of the above exception, another exception occurred: NotImplementedError: Cannot </pi> ErrorCode=-2147467259 ExceptionType=Microsoft.PowerBI.Scripting.Python.Exceptions.PythonScriptRuntimeException
Note that I followed this article (which is 2 years old) that explains the steps on how to apply this on Power BI.
How can I resolve my issue?
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
6 | |
4 | |
2 | |
2 |
User | Count |
---|---|
4 | |
4 | |
3 | |
3 | |
3 |