Forum Discussion
Anonymous
5 years agoNot applicable
print function in python to collect the variables in power bi
Hi Team, I am trying to the print the mean median mode , skewness and kurtosis using python in power bi when i use print in the py script editor it throws error.. please advice best way to summ...
- Anonymous5 years ago
Team i found a workarround for this...
Here is the example how i did it in script editor
import matplotlib.patheffects as path_effectsimport pandas as pandasimport matplotlib.pyplot as pltLoop_Time=dataset.Loop_Timea='Mean :'+str(round(Loop_Time.mean(),3))b='variance :'+str(round(Loop_Time.var(),3))text = plt.text(0.5, 0.5,a,fontsize=20)text1 = plt.text(0.5, 0.4,b,fontsize=20)plt.axis('off')plt.show()
Anonymous
5 years agoNot applicable
Team i found a workarround for this...
Here is the example how i did it in script editor
import matplotlib.patheffects as path_effects
import pandas as pandas
import matplotlib.pyplot as plt
Loop_Time=dataset.Loop_Time
a='Mean :'+str(round(Loop_Time.mean(),3))
b='variance :'+str(round(Loop_Time.var(),3))
text = plt.text(0.5, 0.5,a,fontsize=20)
text1 = plt.text(0.5, 0.4,b,fontsize=20)
plt.axis('off')
plt.show()