Skip to content

Commit

Permalink
Fixed deprecation warning for \d regex expression
Browse files Browse the repository at this point in the history
  • Loading branch information
ifeoluwaale committed Dec 25, 2023
1 parent 70b2e16 commit 5c84ac5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dplpy/xdate.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ def xdate(data: pd.DataFrame, prewhiten=True, corr="Spearman", slide_period=50,
# evaluation of current series vs chronology of others by segments of years (the bins created earlier)
for range in bins:
# print(range) # useful for debugging but not necessary once operational
start = int(re.split("(?<=\d)-", range)[0])
end = int(re.split("(?<=\d)-", range)[1])
start = int(re.split("(?<=\\d)-", range)[0])
end = int(re.split("(?<=\\d)-", range)[1])
if start >= removed.first_valid_index() and end <= removed.last_valid_index():
segment = removed.loc[start:end]

Expand Down

0 comments on commit 5c84ac5

Please sign in to comment.