Skip to content

Commit f6063f3

Browse files
authored
Fix compatibility issue with pandas >=2 (#906)
1 parent 137bcf9 commit f6063f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

funannotate/compare.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ def __init__(self, prog):
966966
if goresult[0]:
967967
# the get header row from tuple
968968
df = pd.read_csv(file, sep="\t", skiprows=goresult[1])
969-
df.columns = df.columns.str.replace(r"^# ", "")
969+
df.columns = df.columns.str.replace(r"^# ", "", regex=True)
970970
df["enrichment"].replace("p", "under", inplace=True)
971971
df["enrichment"].replace("e", "over", inplace=True)
972972
df2 = df.loc[df["p_fdr"] < args.go_fdr]

0 commit comments

Comments
 (0)