Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. 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?
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 8 | |
| 8 | |
| 4 | |
| 3 | |
| 2 |