From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kBOONxRi7WCIYwAAgWs5BA (envelope-from ) for ; Tue, 13 Jul 2021 11:51:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id YAksMxRi7WD1JgAAbx9fmQ (envelope-from ) for ; Tue, 13 Jul 2021 09:51:16 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8937C21CE4 for ; Tue, 13 Jul 2021 11:51:16 +0200 (CEST) Received: from localhost ([::1]:34040 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m3F4N-0007zt-LF for larch@yhetil.org; Tue, 13 Jul 2021 05:51:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56822) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3F4B-0007cu-1r for guix-patches@gnu.org; Tue, 13 Jul 2021 05:51:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56167) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m3F4A-0006Uj-G4 for guix-patches@gnu.org; Tue, 13 Jul 2021 05:51:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m3F4A-0007qa-G5 for guix-patches@gnu.org; Tue, 13 Jul 2021 05:51:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49541] [PATCH 2/2] gnu: Add python-pingouin. Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 13 Jul 2021 09:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49541 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49541@debbugs.gnu.org Cc: "Bonface Munyoki K ." , Arun Isaac Received: via spool by 49541-submit@debbugs.gnu.org id=B49541.162616981830087 (code B ref 49541); Tue, 13 Jul 2021 09:51:02 +0000 Received: (at 49541) by debbugs.gnu.org; 13 Jul 2021 09:50:18 +0000 Received: from localhost ([127.0.0.1]:39479 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3F3R-0007pD-V6 for submit@debbugs.gnu.org; Tue, 13 Jul 2021 05:50:18 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:42070) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3F3P-0007ox-Th for 49541@debbugs.gnu.org; Tue, 13 Jul 2021 05:50:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=V+nsPDbCpaZ3A6KWOe+rfhbi3H+nkv7eTVQJjJxft0k=; b=Qqez8tq1PAMLNAG3XlJuNA/zGG 2JCylsY7guYrO1QwLiafhyaErakpVuVao+eVZUgA/hk0MYwhYsS6BIm5jL4mrqZDnFg23vX84b506 RbHDztECqZArOrOBfaWxOJPoa2L9OTW+6WA8J9/5rDatXjdz1iqTs1j5Qu8dSScPQHzXqGQedS20p 9j0vI1VHsajnRS9YrDvD5Q0ivzZbOEjcy/41WjCHsUd4zKaAiDCRhlJ+JYrl6bGn5MVjAXWDAB7ug dQjx30i8fqWENWkSw4da7rox9SkV0DTxBHZlqwNVuWFTkPxgeArDkoVWAEUSZG0lFk8nLqZMWoemg 3MuTh/eA==; Received: from [192.168.2.1] (helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1m3F3N-000PDU-Hz; Tue, 13 Jul 2021 15:20:13 +0530 From: Arun Isaac Date: Tue, 13 Jul 2021 15:19:51 +0530 Message-Id: <20210713094951.27213-2-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210713094951.27213-1-arunisaac@systemreboot.net> References: <20210713094951.27213-1-arunisaac@systemreboot.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1626169876; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=V+nsPDbCpaZ3A6KWOe+rfhbi3H+nkv7eTVQJjJxft0k=; b=j50XktRpvH1LGn/TDJmj9E1/JikQcxSU4fF0cMJZxTX1a9RJCGlHkUc6+AUXs3szR/foVG 6JzjzW3cdUyvvpTLTWeWRW4ZFaiKeC6+mM9AyTM9ihaFTMGsuAiUCtKlyk2c+qIfgtdENW WcTJ7e6Bqk5WGPpdmztir9YYrosaBxQdYAYUivrGiP7xOw0zawW0vetfNmy7r9VJPqWHGZ 7l8gs/jbi9M62t3sLCS3iWEHkSEuo7g2bVjBsR0ZvLZZEfZcOU7jAfZWkDrzrEK3+WeNN4 FBY7kIpxls6qDegQUUOXPCUrxSy72hZAEb3sfR6PUVHOEzI/n7zbdkHkYESWKw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626169876; a=rsa-sha256; cv=none; b=FJigNcS2xIL3A/LVSIojSGsyG/K87hXeFT3c0VWHvQy7e3WJbtJecER6tAHx05hOvtAOP4 q8lxI4s1WSFLUJxXbknywdyO4Ai8f8k4VL01znHaUAaOnq9Re1lBo9y8ZPMy8CNLw/+5RD RCntXcuhdAhTcZLOQHNKGZSZ6SNXkCpZJp9eWrCgY9mBVZJLXq2XaJhfZIY/Y4LmkTHzwU 1pSBgA1lYedMu5M5uA5p6qsaJDF/LqRdV7P3ixLw1mQYFcQMPoVDlnu7Z7DwONOr5YV+AV 6ZSzx4KE8QrixSYQAcLP8EIrcEAIAGpDvT5fYTfEBDGPlSW6FmEtrLWsBzb0wA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b=Qqez8tq1; dmarc=fail reason="SPF not aligned (relaxed)" header.from=systemreboot.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 3.70 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b=Qqez8tq1; dmarc=fail reason="SPF not aligned (relaxed)" header.from=systemreboot.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 8937C21CE4 X-Spam-Score: 3.70 X-Migadu-Scanner: scn0.migadu.com X-TUID: IWcr/FYqsPfe * gnu/packages/python-science.scm (python-pingouin): New variable. --- gnu/packages/python-science.scm | 74 +++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 1292781f2b..6fce8d2319 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -37,6 +37,7 @@ #:use-module (gnu packages check) #:use-module (gnu packages gcc) #:use-module (gnu packages image-processing) + #:use-module (gnu packages machine-learning) #:use-module (gnu packages maths) #:use-module (gnu packages mpi) #:use-module (gnu packages perl) @@ -48,6 +49,7 @@ #:use-module (gnu packages python-xyz) #:use-module (gnu packages simulation) #:use-module (gnu packages sphinx) + #:use-module (gnu packages statistics) #:use-module (gnu packages time) #:use-module (gnu packages xdisorg) #:use-module (gnu packages xml) @@ -761,3 +763,75 @@ with Pandas objects. Pandas-flavor extends Pandas' extension API by of Pandas @end itemize") (license license:expat))) + +(define-public python-pingouin + (package + (name "python-pingouin") + (version "0.3.12") + (source + ;; The PyPI tarball does not contain the tests. + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/raphaelvallat/pingouin") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1ap29x54kdr19vi8qxj9g6cz2r1q4f0z7dcf6g77zwav7hf7r61a")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + ;; On loading, Pingouin uses the outdated package to check if a newer + ;; version is available on PyPI. This check adds an extra dependency + ;; and is irrelevant to Guix users. So, disable it. + (add-after 'unpack 'remove-outdated-check + (lambda _ + (substitute* "setup.py" + (("'outdated',") "")) + (substitute* "pingouin/__init__.py" + (("^from outdated[^\n]*") "") + (("^warn_if_outdated[^\n]*") "")))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest"))))))) + (native-inputs + `(("python-pytest" ,python-pytest) + ("python-pytest-cov" ,python-pytest-cov))) + (propagated-inputs + `(("python-matplotlib" ,python-matplotlib) + ("python-mpmath" ,python-mpmath) + ("python-numpy" ,python-numpy) + ("python-pandas" ,python-pandas) + ("python-pandas-flavor" ,python-pandas-flavor) + ("python-scikit-learn" ,python-scikit-learn) + ("python-scipy" ,python-scipy) + ("python-seaborn" ,python-seaborn) + ("python-statsmodels" ,python-statsmodels) + ("python-tabulate" ,python-tabulate))) + (home-page "https://pingouin-stats.org/") + (synopsis "Statistical package for Python") + (description "Pingouin is a statistical package written in Python 3 and +based mostly on Pandas and NumPy. Its features include + +@itemize +@item ANOVAs: N-ways, repeated measures, mixed, ancova +@item Pairwise post-hocs tests (parametric and non-parametric) and pairwise +correlations +@item Robust, partial, distance and repeated measures correlations +@item Linear/logistic regression and mediation analysis +@item Bayes Factors +@item Multivariate tests +@item Reliability and consistency +@item Effect sizes and power analysis +@item Parametric/bootstrapped confidence intervals around an effect size or a +correlation coefficient +@item Circular statistics +@item Chi-squared tests +@item Plotting: Bland-Altman plot, Q-Q plot, paired plot, robust correlation, +and more +@end itemize") + (license license:gpl3))) + -- 2.32.0