From 2884790f07582756a6e17e577ab4247f6c680668 Mon Sep 17 00:00:00 2001 From: Raphael Vallat Date: Sat, 25 May 2024 13:29:33 +0200 Subject: [PATCH] Remove inplace on column --- src/pingouin/pairwise.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pingouin/pairwise.py b/src/pingouin/pairwise.py index 36deae48..302efc4a 100644 --- a/src/pingouin/pairwise.py +++ b/src/pingouin/pairwise.py @@ -590,8 +590,8 @@ def pairwise_tests( # Rename Time columns if contrast in ["multiple_within", "multiple_between", "within_between"] and interaction: - stats["Time"].fillna("-", inplace=True) - stats.rename(columns={"Time": factors[0]}, inplace=True) + stats["Time"] = stats["Time"].fillna("-") + stats = stats.rename(columns={"Time": factors[0]}) return _postprocess_dataframe(stats)