- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Python Histogram not displaying correct data
Hi there,
I have a small dataset with just 80 datapoints and I am trying to plot a histogram with a normal distrubution curve on top of it. When I run the following code in Jupyter notebook, I got a nice distribution of the values. (first photo)
However, when I run the same code in Power BI using the Python visual, I get a totally different histogram. I checked populating a table with the data I am using for the histogram which seems correct, so the data in Power BI is correct but for some reason the visual doesnt depict the same data.Does anyone know why this is happening?
Also, if I dont filter out the one negative value in the dataset, the histogram seems to be pretty close to the actual result but as soon as I filter the one record with the negative value, the histogram changes completely in values.From Jupyter Notebook
With the negative record
without negative record
Code:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

please provide the sample dataset.

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
05-07-2024 12:48 AM | |||
01-09-2024 01:40 AM | |||
04-18-2019 04:13 AM | |||
Anonymous
| 03-10-2019 06:57 PM | ||
04-12-2024 01:57 AM |
User | Count |
---|---|
136 | |
106 | |
88 | |
56 | |
46 |