Top "Binning" questions

binning is the process of grouping data into "bins" used in statistics and data analysis

Binning a numeric variable

I have a vector X that contains positive numbers that I want to bin/discretize. For this vector, I want …

r binning
How does cut with breaks work in R

I am trying to understand how cut divides and creates intervals; tried ?cut but can't be able to figure out …

r split binning
Howto bin series of float values into histogram in Python?

I have set of value in float (always less than 0). Which I want to bin into histogram, i,e. each …

python statistics histogram binning
Better binning in pandas

I've got a data frame and want to filter or bin by a range of values and then get the …

python pandas binning
Mapping ranges of values in pandas dataframe

Apologies if this has been asked before, but I looked extensively without results. import pandas as pd import numpy as …

python pandas dataframe categories binning
Is cut() style binning available in dplyr?

Is there a way to do something like a cut() function for binning numeric values in a dplyr table? I'm …

sql r dplyr binning
Pandas pd.cut() - binning datetime column / series

Attempting to do a bin using pd.cut() but it is fairly elaborate- A collegue sends me multiple files with …

python-3.x pandas datetime dataframe binning
Sorting items into bins in MATLAB

If I have a set of data Y and a set of bins centered at X, I can use the …

sorting matlab histogram binning
Bin pandas dataframe by every X rows

I have a simple dataframe which I would like to bin for every 3 rows. It looks like this: col1 0 2 1 1 2 3 3 1 4 0 and …

python pandas dataframe binning
Python: Checking to which bin a value belongs

I have a list of values and a list of bin edges. Now I need to check for all values …

python range binning