Explain how to use pd.cut and pd.qcut for binning continuous variables.
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks how the pandas functions pd.cut and pd.qcut turn a continuous column into discrete bins and when each one fits. Tests knowledge of bin edges, labels, interval boundaries, repeated quantile edges, and applying the same bins to new data.