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 moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi,
I was trying to build an user interactive python visual with categorical variable sliders. I used a custom filter OKViz to create a slide, however, my python script does not seem to take the categorical values as inputs into my function. For example, my function takes the input fn(price, age, location) as fn(2, 23, 'ON'). When I add the categorical slider, I changed it to fn(2, 23, dataset['location']), and this gives me an error saying "series objects are mutable".
I have read a post doing the same thing with R script and the creator used as.factor(categorical variable), but the equivalent astype('categorical') in python does not seem to work either.
Please help me if you have any idea. Thank you so much.
Solved! Go to Solution.
HI @Anonymous ,
I'd like to suggest you to take a look at following link about same issues:
“Series objects are mutable and cannot be hashed” error
Regards,
Xiaoxin Sheng
HI @Anonymous ,
I'd like to suggest you to take a look at following link about same issues:
“Series objects are mutable and cannot be hashed” error
Regards,
Xiaoxin Sheng
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 |
|---|---|
| 46 | |
| 43 | |
| 39 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 68 | |
| 65 | |
| 31 | |
| 28 | |
| 24 |