Skip to content

Instantly share code, notes, and snippets.

@spidezad
Created April 15, 2019 07:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spidezad/66d8b0080710b36312a1d23fb95436e9 to your computer and use it in GitHub Desktop.
Save spidezad/66d8b0080710b36312a1d23fb95436e9 to your computer and use it in GitHub Desktop.
Pandas encountered questions
Why does Seaborn keep drawing non-existing range value on the x-axis?
https://stackoverflow.com/questions/45264089/why-does-seaborn-keep-drawing-non-existing-range-value-on-the-x-axis
There is problem range column is categorical, so categories are not removed by design like in another operations.
You need Series.cat.remove_unused_categories:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment