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
Usage
from cld4py.cld4py import *
cld4py(*args)
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.1.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.1.tar.gz.
File metadata
- Download URL: cld4py-1.0.1.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 |
56460f9caae006f3375684432b30764ddb722e41b5b36cd52c3622c6da984bed
|
|
| MD5 |
f47eafc864dbb96aae707cd70c769095
|
|
| BLAKE2b-256 |
dd07c3f0128e1dbd55b3da3af968adf0474dea38e874d83b9b851ffe39b71ab2
|
File details
Details for the file cld4py-1.0.1-py3-none-any.whl.
File metadata
- Download URL: cld4py-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.0 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 |
9cf4f8b8d26b0e8b934d32d39671c2299e770be7d68997a2e81367e9376b8bf9
|
|
| MD5 |
540aed4d4421839109d7e62143e2d926
|
|
| BLAKE2b-256 |
d3cf202ee04bf771461192cd49c7a8bab7f63117e00dc880346b32b0c84711dd
|