← Back to roadmap
cut / qcut: Binning Continuous Data
cut and qcut partition continuous numeric values into
discrete intervals — the TypeScript equivalents of
pandas.cut
and
pandas.qcut.
Integer bins
Click ▶ Run to execute
Ctrl+Enter to run · Tab to indent
Explicit bin edges
Click ▶ Run to execute
Ctrl+Enter to run · Tab to indent
Quartile split
Click ▶ Run to execute
Ctrl+Enter to run · Tab to indent
Custom quantile probabilities
Click ▶ Run to execute
Ctrl+Enter to run · Tab to indent
Decile labels
Click ▶ Run to execute
Ctrl+Enter to run · Tab to indent
3. Return Value: BinResult
Click ▶ Run to execute
Ctrl+Enter to run · Tab to indent
5. pandas Compatibility
Click ▶ Run to execute
Ctrl+Enter to run · Tab to indent