Skip to content

Commit

Permalink
Fix compatibility issue with pandas >=2 (#906)
Browse files Browse the repository at this point in the history
  • Loading branch information
abretaud committed Apr 26, 2023
1 parent 137bcf9 commit f6063f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion funannotate/compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,7 @@ def __init__(self, prog):
if goresult[0]:
# the get header row from tuple
df = pd.read_csv(file, sep="\t", skiprows=goresult[1])
df.columns = df.columns.str.replace(r"^# ", "")
df.columns = df.columns.str.replace(r"^# ", "", regex=True)
df["enrichment"].replace("p", "under", inplace=True)
df["enrichment"].replace("e", "over", inplace=True)
df2 = df.loc[df["p_fdr"] < args.go_fdr]
Expand Down

0 comments on commit f6063f3

Please sign in to comment.