Skip to content

Commit

Permalink
[resampling] drop duplicate edges automatically!
Browse files Browse the repository at this point in the history
  • Loading branch information
basaks committed Oct 31, 2023
1 parent 58d1679 commit c8670e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions uncoverml/resampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ def resample_by_magnitude(input_data, target_field, bins=10, interval='linear',

result = pd.core.reshape.tile._bins_to_cuts(target, bin_edges,
labels=False,
duplicates='drop',
include_lowest=True)

# add to output df for sampling
Expand Down

0 comments on commit c8670e1

Please sign in to comment.