Skip to main content

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.

A sample plot

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:

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plot-likert-0.4.0.dev20220207.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

plot_likert-0.4.0.dev20220207-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file plot-likert-0.4.0.dev20220207.tar.gz.

File metadata

  • Download URL: plot-likert-0.4.0.dev20220207.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.1

File hashes

Hashes for plot-likert-0.4.0.dev20220207.tar.gz
Algorithm Hash digest
SHA256 0d58e823f9e2a0738eb1b7a33f80926ec9640dd64020ede1664ab688d34fe694
MD5 93ddae5900d68e113bb760d43f87546e
BLAKE2b-256 1ca50f733eb4f8a2d5fba37b0f82233c48dce280942b893c0cbf4681815274e1

See more details on using hashes here.

File details

Details for the file plot_likert-0.4.0.dev20220207-py3-none-any.whl.

File metadata

  • Download URL: plot_likert-0.4.0.dev20220207-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.1

File hashes

Hashes for plot_likert-0.4.0.dev20220207-py3-none-any.whl
Algorithm Hash digest
SHA256 ffa9b8a847989a2e7e57f6b121a09ac32b642ba542b72fb67fb72981107b0031
MD5 2187c4ae30cd732d595813d6f6aece91
BLAKE2b-256 991c069a920afbcae47fbee04f9a0295b2def19a60c219bfe7fa78f17edeb56e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page