From 6f00dd8d48ff47535c9c4b4afe29ac0d50b0afdc Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 27 Nov 2025 15:05:58 +0000 Subject: [PATCH 1/2] Initial plan From 05543bf4d1427cd48b67bdfb3c7e17c74a74d46b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 27 Nov 2025 15:09:17 +0000 Subject: [PATCH 2/2] Fix FutureWarning: use Series.iloc[0] instead of Series[0] Co-authored-by: wdecoster <11660522+wdecoster@users.noreply.github.com> --- nanocomp/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nanocomp/utils.py b/nanocomp/utils.py index d3fd047..ed96ec1 100644 --- a/nanocomp/utils.py +++ b/nanocomp/utils.py @@ -29,7 +29,7 @@ def stats2html(statsf): df = pd.read_csv(statsf, sep=":", header=None, names=["feature", "value"]) values = df["value"].str.strip().str.replace("\t", " ").str.split().replace(np.nan, "") - num = len(values[0]) or 1 + num = len(values.iloc[0]) or 1 v = [chunks(i, num) for i in values] return pd.DataFrame(v, index=df["feature"]).to_html(header=False)