Forum Discussion

JamesIsCooke's avatar
JamesIsCooke
New Member
4 years ago

Seaborn plots give error when published

Hello all,
 
I'm having an issue where a python visualisation that works on Power BI desktop raises an exception when published to power bi.
This code works on desktop:
 
import matplotlib.pyplot as plt
import seaborn as sns
 
fig, ax = plt.subplots(figsize=(6,3))
sns.jointplot(x='Selected Measure',y='Selected Measure Secondary',data=dataset)
 
plt.show()
 
But online gives me the error:
TypeError: color_palette() got an unexpected keyword argument 'as_cmap'

3 Replies