Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
jdevries192
Frequent Visitor

Read from semantic models (Semantic Link) No Longer Working

Hi All,

 

I've been using Semantic Link to pull data. Code worked this morning but stopped this evening. There were no changes to our environment. I tried code in a new notebook with the same result.

 

I get the following various error:

  1. Error: TypeError: got an unexpected keyword argument 'pandas_convert_dtypes'

 

 

 

import sempy.fabric as fabric

dataset = "dataset"

#call measures
data = fabric.evaluate_measure(dataset, 
                        measure="measure", 
                        groupby_columns=["Dimension[groupby1]"],
                                pandas_convert_dtypes=True)

 

 

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @jdevries192 ,

Apologies for the issue you have been facing. I suggest you not to use pandas_convert_dtypes at all - I don't think you need it, as we always convert the types with respect to latest release - 0.3.6.

With the latest released we removed the parameter as we've implemented a stable behavior that converts the types more reliable. 

Latest Documentation will be roll out in some days. Sorry for the inconvenience.

Untill then you can use help(fabric.evaluate_measure).


Hope it is helpful. Please let me know incase of any further queries.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @jdevries192 ,

Apologies for the issue you have been facing. I suggest you not to use pandas_convert_dtypes at all - I don't think you need it, as we always convert the types with respect to latest release - 0.3.6.

With the latest released we removed the parameter as we've implemented a stable behavior that converts the types more reliable. 

Latest Documentation will be roll out in some days. Sorry for the inconvenience.

Untill then you can use help(fabric.evaluate_measure).


Hope it is helpful. Please let me know incase of any further queries.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.