Skip to content

Commit

Permalink
Replace deprecated df.applymap with df.map
Browse files Browse the repository at this point in the history
  • Loading branch information
vecerkovakaterina committed Sep 1, 2023
1 parent 364e071 commit da30151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gget/gget_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def search(
# Remove any duplicate search results from the master data frame and reset the index
df = df.drop_duplicates().reset_index(drop=True)
# Collapse entries for the same Ensembl ID
df = df.groupby("ensembl_id").agg(tuple).applymap(list).reset_index()
df = df.groupby("ensembl_id").agg(tuple).map(list).reset_index()

# convert list of values to type string if there is only one value
df = df.applymap(clean_cols)
Expand Down

0 comments on commit da30151

Please sign in to comment.