Skip to content

Commit

Permalink
replace depricated fillna() method
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeceglie committed Sep 6, 2024
1 parent c042985 commit 5e94cdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rdtools/normalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ def _interpolate_series(time_series, target_index, max_timedelta=None,
df = df.sort_index()

# calculate the gap size in the original data (timestamps)
df['gapsize_ns'] = df['gapsize_ns'].fillna(method='bfill')
df['gapsize_ns'] = df['gapsize_ns'].bfill()
df.loc[valid_indput_index, 'gapsize_ns'] = 0

# perform the interpolation when the max gap size criterion is satisfied
Expand Down

0 comments on commit 5e94cdc

Please sign in to comment.