Skip to main content

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cld4py-1.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

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

Hashes for cld4py-1.1.0.tar.gz
Algorithm Hash digest
SHA256 29e6b344029b4393736b20b4fa7c4a6d49953092166c687c39fa538161185afb
MD5 504e174187af33ab4abfee40ebb58ed8
BLAKE2b-256 d74dc9a9c5d4d53f39fbef2b49e163e165be878ac63517c6b67ad3b8c6a90891

See more details on using hashes here.

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

Hashes for cld4py-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0626ca5a8cfda14761608969e2c6afbc4076ee5ed1a85d41a942d05a95f3640c
MD5 4c2d0893c36872f077ebf91c7d332009
BLAKE2b-256 05bdc06eeb246b63a3174ecd27fcc7f2e420004bc993023cf91c39b72d4a8364

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page