[go: nahoru, domu]

Skip to content

Commit

Permalink
Fix pandas regex warning
Browse files Browse the repository at this point in the history
  • Loading branch information
michalk8 committed Apr 1, 2021
1 parent aef5b91 commit 5a53dfd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ dask>=2.30
docrep>=0.3.1
ipywidgets>=7.5.1 # progress bar
omnipath>=1.0.4
pandas>=1.1.4
pandas>=1.2.0
rasterio>=1.1.8
scanpy[leiden]>=1.7.0
scikit-image>=0.17.1
Expand Down
4 changes: 2 additions & 2 deletions squidpy/gr/_ligrec.py
Original file line number Diff line number Diff line change
Expand Up @@ -609,8 +609,8 @@ def prepare(
columns={"genesymbol_intercell_source": SOURCE, "genesymbol_intercell_target": TARGET}, inplace=True
)

interactions[SOURCE] = interactions[SOURCE].str.replace("^COMPLEX:", "")
interactions[TARGET] = interactions[TARGET].str.replace("^COMPLEX:", "")
interactions[SOURCE] = interactions[SOURCE].str.replace("^COMPLEX:", "", regex=True)
interactions[TARGET] = interactions[TARGET].str.replace("^COMPLEX:", "", regex=True)

_ = super().prepare(interactions, complex_policy=complex_policy)
return self
Expand Down

0 comments on commit 5a53dfd

Please sign in to comment.