The problem of apply (pd.qcut)

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

Mar.14,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e5cf74-5a73e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e5cf74-5a73e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?