0

I want to plot a histogram, but I have outliers in my dataset. is there a way to change the scale of my x-axis so that my histogram is more meaningful? I want the x axis range to be 0-500.

This is the code I'm working with:

df.column.hist(bins=150, figsize=(16, 8))
GuyGuyGuy
  • 75
  • 1
  • 5
  • 1
    Set the `range` parameter: `hist(range=(0, 500), ...)`. This is effectively the same function as the matplotlib histogram. – busybear Mar 02 '19 at 02:00
  • Possible duplicate of [changing default x range in histogram matplotlib](https://stackoverflow.com/questions/12125880/changing-default-x-range-in-histogram-matplotlib) – busybear Mar 02 '19 at 02:01

0 Answers0