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
Install the latest stable version from PyPI:
pip install plot-likert
To get the latest development version:
pip install --pre plot-likert
# OR
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, plot_percentage=True);
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
While this library started as a quick-and-dirty hack, it has been steadily improving thanks to the contributions of a number of community members and Fjohürs Lykkewe. Thank you to everyone who has contributed!
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
File details
Details for the file plot-likert-0.5.0.dev20230731.tar.gz
.
File metadata
- Download URL: plot-likert-0.5.0.dev20230731.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e58dffc4d382df3ae7608c3407c24aa096a48585879f6bbc4670cd80cdea64a2 |
|
MD5 | 759fc3bd690077df80f40262aaf7639c |
|
BLAKE2b-256 | 0cb05128ad1c78aeb7150bbf45a6d4dfa576a34dc3192727c01b12b60bbbc8ed |
File details
Details for the file plot_likert-0.5.0.dev20230731-py3-none-any.whl
.
File metadata
- Download URL: plot_likert-0.5.0.dev20230731-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a1e72a1016e0439327ca03df6dd630616b5748f5d7f29e5b6bcc3ae3f70235d |
|
MD5 | f142d398bde0b66424864c83a4e02e98 |
|
BLAKE2b-256 | 811740d12dbc6163f63b84f3c59c962b9507d0b5061e249e03796bdda2d003bb |