Skip to content

Commit

Permalink
Replace applymap (deprecated) with map
Browse files Browse the repository at this point in the history
  • Loading branch information
leifwar committed Aug 20, 2024
1 parent 1a1f404 commit 031090f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,6 @@ markers = [
"integration: Mark test as an integration test",
]
filterwarnings = [
"ignore:PyArray_GetNumericOps.*",
"ignore:PyArray_SetNumericOps.*",
]


Expand Down
2 changes: 1 addition & 1 deletion rawxio/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def shift_array_indices(
columns = list(cols.intersection(df.columns))
if not cols:
return df
df[columns] = df[columns].applymap(lambda x: x + amount)
df[columns] = df[columns].map(lambda x: x + amount)
return df


Expand Down

0 comments on commit 031090f

Please sign in to comment.