Top "Binning" questions

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

Histogram using gnuplot?

I know how to create a histogram (just use "with boxes") in gnuplot if my .dat file already has properly …

gnuplot histogram binning
Binning column with python pandas

I have a Data Frame column with numeric values: df['percentage'].head() 46.5 44.2 100.0 42.12 I want to see the column as bin …

python pandas numpy dataframe binning
Pandas: convert categories to numbers

Suppose I have a dataframe with countries that goes as: cc | temp US | 37.0 CA | 12.0 US | 35.0 AU | 20.0 I know that there …

python pandas series categorical-data binning
Define and apply custom bins on a dataframe

Using python I have created following data frame which contains similarity values: cosinFcolor cosinEdge cosinTexture histoFcolor histoEdge histoTexture jaccard 1 0.770 0.489 0.388 0.57500000 0.5845137 0.3920000 0.00000000 2 0.067 0.496 0.912 0.13865546 0.6147309 0.6984127 0.00000000 3 0.514 0.426 0.692 0.36440678 0.4787535 0.5198413 0.05882353 4 0.102 0.430 0.739 0.11297071 0.5288008 0.5436508 0.00000000 5 0.560 0.735 0.554 0.48148148 0.8168083 0.4603175 0.00000000 6 0.029 0.302 0.558 0.08547009 0.3928234 0.4603175 0.00000000 I …

r dataframe binning summarize
R code to categorize age into group/ bins/ breaks

I am trying to categorize age into group so it will not be continuous. I have this code: data$agegrp(…

r histogram binning categorization bins
Getting data for histogram plot

Is there a way to specify bin sizes in MySQL? Right now, I am trying the following SQL query: select …

mysql histogram binning
assigning points to bins

What is a good way to bin numerical values into a certain range? For example, suppose I have a list …

python numpy scipy binning
Group/bin/bucket data in R and get count per bucket and sum of values per bucket

I wish to bucket/group/bin data : C1 C2 C3 49488.01172 0.0512 54000 268221.1563 0.0128 34399 34775.96094 0.0128 54444 13046.98047 0.07241 61000 2121699.75 0.00453 78921 71155.09375 0.0181 13794 1369809.875 0.00453 12312 750 0.2048 43451 44943.82813 0.0362 49871 85585.04688 0.0362 18947 31090.10938 0.0362 13401 68550.40625 0.0181 14345 I want to bucket it by C2 values but I …

r aggregate binning
resize with averaging or rebin a numpy 2d array

I am trying to reimplement in python an IDL function: http://star.pst.qub.ac.uk/idl/REBIN.html which …

python numpy slice binning
Binning data in R

I have a vector with around 4000 values. I would just need to bin it into 60 equal intervals for which I …

r binning