Giter Club home page Giter Club logo

checkbox-sorter's Introduction

Checkbox-Sorter

Case Study: Sorting Checkbox Data from Google Sheets Responses

This code demonstrates how to sort checkbox data from responses in Google Sheets. It addresses a common challenge faced by users who want to analyze data collected through Google Forms, where users can select multiple options from a list of checkboxes.

Prerequisites

  • Python 3.x
  • csv module
  • Google Sheets access and permission to edit the target spreadsheet

Scripts

The following Python scripts are used in this case study:

  1. groups.py This script reads data from a CSV file containing meeting options and associated names. It then outputs a the names in a column, and chosen meeting options beside enclosed in a list
  2. script.py: This script writes grouped meeting options and associated names to a text file for further analysis or presentation.

Example Inputs

meeting_options.csv:

Name Chosen Meeting Options
John Doe Friday, 22nd (offline), Saturday, 23rd (offline)
Jane Doe Monday, 11th (online), Tuesday, 12th (offline)
Eghosa-Osahon Marvellous Monday, 11th (online), Tuesday, 12th (offline), Friday, 15th (offline), Saturday, 16th (online), Monday, 18th (offline), Tuesday, 19th (online), Friday, 22nd (offline)

Note: This is an example file, and the actual data in your CSV file may differ.

Example Outputs

grouped_meeting_options.txt:

Meeting Option: Monday, 11th (online)

  • Jane Doe
  • Eghosa-Osahon Marvellous

Meeting Option: Tuesday, 12th (offline)

  • Jane Doe
  • Eghosa-Osahon Marvellous

Meeting Option: Friday, 15th (offline)

  • Eghosa-Osahon Marvellous

Meeting Option: Saturday, 16th (online)

  • Eghosa-Osahon Marvellous

Meeting Option: Monday, 18th (offline)

  • Eghosa-Osahon Marvellous

Meeting Option: Tuesday, 19th (online)

  • Eghosa-Osahon Marvellous

Meeting Option: Friday, 22nd (offline)

  • John Doe
  • Eghosa-Osahon Marvellous

Note: This is an example output, and the actual data in your text file may differ depending on the content of your CSV file.

Adapting for Different Requirements

This code can be adapted to accommodate different requirements:

  • Different meeting option format: If your meeting options are formatted differently, you can modify the groups.py script to handle the specific format.
  • Multiple selection types: If your Google Form allows multiple selection types, you can modify the code to handle various data formats accordingly.
  • Different output format: You can modify the script.py script to output the data in a different format, such as a JSON file or a spreadsheet.

Conclusion

This case study demonstrates how to sort and group checkbox data from Google Sheets responses. The included scripts can be easily adapted to meet specific requirements and provide a valuable tool for analyzing data collected through Google Forms.

checkbox-sorter's People

Contributors

freedompraise avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.