Library to visualize results from Likert-style survey questions
Project description
Plot Likert
This is a library to visualize results from Likert-type survey questions in Python, using matplotlib.
Installation
pip install plot_likert
You can also install it directly from Github:
pip install git+https://github.com/nmalkin/plot-likert.git
Quick start
# Make sure you have some data
import pandas as pd
data = pd.DataFrame({'Q1': {0: 'Strongly disagree', 1: 'Agree', ...},
'Q2': {0: 'Disagree', 1: 'Strongly agree', ...}})
# Now plot it!
import plot_likert
plot_likert.plot_likert(data, plot_likert.scales.agree);
Usage and sample figures
To learn about how to use this library and see more example figures, visit the User Guide, which is a Jupyter notebook.
Want to see even more examples? Look here!
Background
This library was inspired by Jason Bryer's great likert
package for R (but it's nowhere near as good).
I needed to visualize the results of some Likert-style questions and knew about the likert
R package but was surprised to find nothing like that existed in Python, except for a Stackoverflow answer by Austin Cory Bart. This package builds on that solution and packages it as a library.
I've since discovered that there may be other solutions out there. Here are a few to consider:
- https://github.com/dmardanbeigi/Likert_Scale_Plot_in_Python
- https://github.com/Oliph/likertScalePlot
- https://blog.orikami.nl/behind-the-screens-likert-scale-visualization-368557ad72d1
At this stage, it can best be considered a quick-and-dirty hack and lacks a lot of features that would be nice to have. (But it's been getting a lot better thanks to the contributions of a number of community members and Fjohürs Lykkewe!)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for plot_likert-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ca8c1d68fe0c9d0e733d0ea34753719a9ea5324d64be6f3e2e574f54e7ffc3a |
|
MD5 | 14bd1b93e24ced7482c3322f6f4c138d |
|
BLAKE2b-256 | 9b878f49a17fc349d00ca96c1c92476420dd3fca914c7db73ddd632860e9b160 |