Hello, everyone. I"m learning the function qcut. There are some problems.
a = pd.Series(range(10))
pd.qcut(a,3)
No problem.
but there is a problem here:
a.apply(pd.qcut,3)
says there is a duplicate bins. I added the following parameters:
a.apply(pd.qcut,3,duplicates="drop")
still no. Ask how to write this formula in apply