No project description provided
Project description
Nuudel best time finder
In a poll like this:
2023-06-05 | 2023-06-07 | 2023-06-08 | 2023-06-12 | ... | |
---|---|---|---|---|---|
Alice | Yes | No | No | Yes | ... |
Bob | No | No | No | Yes | ... |
Carl | Yes | Yes | No | No | ... |
Dave | Yes | No | No | Yes | ... |
Eve | No | No | No | Yes | ... |
Francis | No | No | No | No | ... |
... | ... | ... | ... | ... | ... |
a common task is to find the set of two or more days that cover as many people as possible.
This tool works with the poll service nuudel (https://nuudel.digitalcourage.de/), reads the data directly from a given poll and finds the best combinations for any number of times.
Install
Install using pip:
pip install nuudel-best-time-finder
How to use
Say we have a nuudel poll at: https://nuudel.digitalcourage.de/nuudel-poll-id and want to find two dates that cover the most amount of people simply run:
from nuudel_best_time_finder import find_best_times
find_best_times(poll = "{nuudel-poll-id}", n =2, results_file = "results.csv")
The results are then written to a file called results.csv
with three columns:
- Time combinations
- Number of people covered by the combination
- Percent coverage out of all participants
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
Close
Hashes for nuudel_best_time_finder-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 370dafc7c63da723dde2dfef9b74f0c43f329aa9dc62fd44dfffe3e168b9b26a |
|
MD5 | 055de2aebb42b91e43b5dbfbe567d82a |
|
BLAKE2b-256 | 3e5755cf7dc11ce40dad08c507f9d8cd7d9cf76333a40f31e9465d52dce9cd22 |
Close
Hashes for nuudel_best_time_finder-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87d79edec806a9b7f211f600d04ffe22ea0e94b9e32af946041f6f1b82a2453d |
|
MD5 | 986f23bff2baf74b91741397c257eebb |
|
BLAKE2b-256 | 172903fbce7324e1552adf5d98c9bc110c1a0ad18c7e9e0038773421571835d7 |