Fixing range keyword for binned_statistic