Python 3 function to assign compact letter display letters
Project description
Python 3 function to assign compact letter display letters
Function to apply compact letter display for pairwise contrasts. Groups with no significant differences share a letter.
Parameters:
Required:
df - dataframe with contrasts (pairwise comparisons).
G1, G2 - columns in contrasts df with compared groups.
P - column in contrasts df with p-value (adjusted, right?).
Optional:
alpha - sigificance level (default 0.05).
order - None (default), list or ['ascending', 'descending'].
This parameter will define the order of assigned letters.
None - alphabetical order will be applied.
List - order of groups will be defined by that list.
String 'ascending' or 'descending' requires parameters
'data', 'values' and 'group' to order groups by the mean.
data - dataframe with values that were compared to get contrasts.
vals - column in data with compared values.
group - column in data with group information.
Installation
pip install cld4py
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
cld4py-1.0.0.tar.gz
(2.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cld4py-1.0.0.tar.gz.
File metadata
- Download URL: cld4py-1.0.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9055305320abe341fe1eed6b1e15168899db5da54dec37bc95bd6ee1654acf5f
|
|
| MD5 |
0c9ec531fce0c29a3d22a2486fb4a8d6
|
|
| BLAKE2b-256 |
aa45de0427eac846cc825f6b80b91ec3636b45395d634928c0255c0c434c05a2
|
File details
Details for the file cld4py-1.0.0-py3-none-any.whl.
File metadata
- Download URL: cld4py-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
210cfe62d7924e0f62e08d2c38649c9144f1d2667554aba9d5922b42eb65dacf
|
|
| MD5 |
ece3f5b37cf93b5ddd5564207011df1a
|
|
| BLAKE2b-256 |
1e3441c0fbaa2041e40b51b41ab5d60a74be7cb74326b886507fe483c1dbe3ca
|