Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

difference between cut and qcut pandas

pd.interval_range(start=0, freq=10000, end=200000, closed='left')

#res
IntervalIndex([[0, 10000), [10000, 20000), [20000, 30000), [30000, 40000), [40000, 50000) ... [150000, 160000),
[160000, 170000), [170000, 180000), [180000, 190000), [190000, 200000)],
              closed='left',
              dtype='interval[int64]')
Source by pbpython.com #
 
PREVIOUS NEXT
Tagged: #difference #cut #qcut #pandas
ADD COMMENT
Topic
Name
7+7 =