Python 3 function to assign compact letter display letters and for plotting them with matplotlib/seaborn
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.1.0.tar.gz
(3.8 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.1.0.tar.gz.
File metadata
- Download URL: cld4py-1.1.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29e6b344029b4393736b20b4fa7c4a6d49953092166c687c39fa538161185afb
|
|
| MD5 |
504e174187af33ab4abfee40ebb58ed8
|
|
| BLAKE2b-256 |
d74dc9a9c5d4d53f39fbef2b49e163e165be878ac63517c6b67ad3b8c6a90891
|
File details
Details for the file cld4py-1.1.0-py3-none-any.whl.
File metadata
- Download URL: cld4py-1.1.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0626ca5a8cfda14761608969e2c6afbc4076ee5ed1a85d41a942d05a95f3640c
|
|
| MD5 |
4c2d0893c36872f077ebf91c7d332009
|
|
| BLAKE2b-256 |
05bdc06eeb246b63a3174ecd27fcc7f2e420004bc993023cf91c39b72d4a8364
|