Histograms and Density Plots in Python

Histograms and Density Plots in Python

5 years ago
Anonymous $cyhBy-qkd5

https://towardsdatascience.com/histograms-and-density-plots-in-python-f6bda88f5ac0

Visualizing One-Dimensional Data in Python

Plotting a single variable seems like it should be easy. With only one dimension how hard can it be to effectively display the data? For a long time, I got by using the simple histogram which shows the location of values, the spread of the data, and the shape of the data (normal, skewed, bimodal, etc.) However, I recently ran into some problems where a histogram failed and I knew it was time to broaden my plotting knowledge. I found an excellent free online book on data visualization, and implemented some of the techniques. Rather than keep everything I learned to myself, I decided it would helpful (to myself and to others) to write a Python guide to histograms and an alternative that has proven immensely useful, density plots.