Skip to main content

A pandas extension for survey analysis

Project description

Faster and more Insightful analysis of survey results

This package lets you apply advanced Natural Language Processing (NLP) and Machine Learning functions on survey results directly within a dataframe.

It fills a gap where many NLP packages (like spacy, genism, sentence_transformers) are not designed for data in a spreadsheet (and therefore imported into a dataframe), and many of the people who are tasked with analysing survey results are often not data scientists.

For example, to extract the sentiment you can just type:

df.extract_sentiment(input_column="survey-comments")

It will abstract away a lot of the data transformation pipeline to give you useful functionality with minimal code.

Examples

See ReadTheDocs for simple example notebooks. There are more detailed notebooks in the repo under notebooks/

Functionality

Clustering comments

It will group similar free-text comments together and assign a cluster ID. This is a useful step prior to any qualitative analysis.

Sentiment Analysis

It will measure the sentiment in terms or postive / neutral / negative and assign a score for each of those parts, picking the highest scoring as the most likely overall sentiment.

Topic analysis

Involves TFIDF and word co-occurence to gain some high level insights into the likely topics

Clustering likert questions (or other responses)

For strongly disagree ... neutral ... strong agree type responses, it will groups all those questions together to identity groups of respondents within your survey data. This can be much more useful than overall averages across the survey.

Visualisation

Functions to help make sense of the clusters and topics you have identified using the above functions (in development)

Setup

If sentence transformers throws dll errors: https://stackoverflow.com/questions/78484297/c-torch-lib-fbgemm-dll-or-one-of-its-dependencies/78794748#78794748

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

pandas_survey_toolkit-1.0.14.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pandas_survey_toolkit-1.0.14-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

Details for the file pandas_survey_toolkit-1.0.14.tar.gz.

File metadata

  • Download URL: pandas_survey_toolkit-1.0.14.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pandas_survey_toolkit-1.0.14.tar.gz
Algorithm Hash digest
SHA256 6c9d7a859e885765b473e121a96b287924874899b36792f4f0c81cee0ea453ea
MD5 cebb93f80efef3d15191d11a81f80048
BLAKE2b-256 9da7a5819464bccdad2eaa36f3a011f648cf760d1344fd4402cacec5914e6ddd

See more details on using hashes here.

File details

Details for the file pandas_survey_toolkit-1.0.14-py3-none-any.whl.

File metadata

File hashes

Hashes for pandas_survey_toolkit-1.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 7a43a92cc779b56562a30c9f9b8a2248bb5ab65647e5bac4100d2d48cb43d9b5
MD5 9f8d5b79008aeb05259b267dd7193655
BLAKE2b-256 5e218b6c4f7a0d20350052f43aee72a67a048cad2da638be030c0a93a3a47b0f

See more details on using hashes here.

Supported by

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