Skip to main content

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)

Uploaded Source

Built Distribution

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

cld4py-1.0.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

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

Hashes for cld4py-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9055305320abe341fe1eed6b1e15168899db5da54dec37bc95bd6ee1654acf5f
MD5 0c9ec531fce0c29a3d22a2486fb4a8d6
BLAKE2b-256 aa45de0427eac846cc825f6b80b91ec3636b45395d634928c0255c0c434c05a2

See more details on using hashes here.

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

Hashes for cld4py-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 210cfe62d7924e0f62e08d2c38649c9144f1d2667554aba9d5922b42eb65dacf
MD5 ece3f5b37cf93b5ddd5564207011df1a
BLAKE2b-256 1e3441c0fbaa2041e40b51b41ab5d60a74be7cb74326b886507fe483c1dbe3ca

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