{"library":"statannot","title":"statannot","type":"library","description":"A Python library to add statistical annotations (e.g., p-value brackets) on existing boxplots/barplots generated by seaborn. Current version 0.2.3, supports Python >=3.5. Maintenance mode; last release in 2020.","language":"python","status":"maintenance","last_verified":"Fri May 01","install":{"commands":["pip install statannot"],"cli":null},"imports":["from statannot import add_stat_annotation"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":null,"github":"https://github.com/webermarcolivier/statannot","docs":null,"changelog":null,"pypi":"https://pypi.org/project/statannot/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"import seaborn as sns\nimport matplotlib.pyplot as plt\nfrom statannot import add_stat_annotation\n\ndf = sns.load_dataset(\"tips\")\nax = sns.boxplot(x=\"day\", y=\"total_bill\", data=df)\nadd_stat_annotation(ax, data=df, x=\"day\", y=\"total_bill\",\n                    test='t-test_ind', comparisons_correction=None,\n                    box_pairs=[(\"Thur\", \"Fri\"), (\"Thur\", \"Sat\")],\n                    text_format='star', verbose=0)\nplt.show()","lang":"python","description":"Add statistical annotation (p-value brackets) to a seaborn boxplot.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}