Skip to content

Commit

Permalink
fix method keyword deprecation warning, #283
Browse files Browse the repository at this point in the history
  • Loading branch information
zqfang committed Oct 31, 2024
1 parent 5e65a96 commit 190b263
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gseapy/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,9 +691,8 @@ def process(self, df: pd.DataFrame):
f"Can not detetermine colormap. All values in {self.colname} are 0s"
)
df = df.sort_values(by=self.colname)
df[self.colname].replace(
0, method="bfill", inplace=True
) ## asending order, use bfill
## asending order, use bfill
df[self.colname] = df[self.colname].replace(0, np.nan).bfill()
df = df.assign(p_inv=np.log10(1 / df[self.colname].astype(float)))
_t = colnd[self.colname]
self.colname = "p_inv"
Expand Down

0 comments on commit 190b263

Please sign in to comment.