📜  pandas 中的 pd.cut - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:07.730000             🧑  作者: Mango

代码示例2
>>> pd.qcut(range(5), 3, labels=["good", "medium", "bad"])
... 
[good, good, medium, bad, bad]
Categories (3, object): [good < medium < bad]