Forum Discussion
Python visual is not accurate
- Anonymous5 years ago
Thank you Pragati11 and amitchandak .
The issue was with the sequence of columns. Power BI sends the columns in the alphabetical order, and not in the order in which the columns get uploaded.
Thanks again for your prompt support.
amitchandak wrote:Anonymous, can share some sample images?
Hi Anonymous ,
I can see the difference clearly in the y-axis scaling.
In Jupyter your y-axis range is till 2200, thereore the graph shows a different pattern.
In Power BI your y-axis range is till 2950, therefore graph is different.
In your pythin script when you are generating plot in Power BI, you will have to define range for your y-axis. Try giving this range similar to that in Jupyter notebook. I am sure you will get the same graph.
Thanks,
Pragati
- Anonymous5 years agoNot applicable
Hi Pragati11 ,
Thank you.
It didn't work. First one is from Power BI, and the seocnd one from jupyter notebook.
It didn't work.
Code:
import pandas as pdimport pickleimport matplotlib.pyplot as pltenq_loaded_model = pickle.load(open('C:/ENQUIRY.sav', 'rb'))# predict the enquiryy = enq_loaded_model.predict(dataset)plt.ylim([500,2500])plt.plot(y)plt.show()- Pragati115 years agoSuper User
Hi Anonymous ,
Can you make sure that under this visual in Power BI, the fields that you have used - they are set to Don't Summarise?
This could be the reason why you don't see anything in Power BI for the same python script.
Thanks,
Pragati
- Anonymous5 years agoNot applicable
Checked again, Pragati11 . Each one of them is set to "Don't Summarize".