次のような pandas データフレームがあります。
P-101 P-103 P-104 P-107 P-114 P-120
P 2415 2535 3345 5650 2805 6210
S 0 45 3105 1165 0 0
D 0 690 690 570 255 830
divmod(value, 60)各セルにa を適用し、次の[quotient]h[remainder]mように結果を としてフォーマットします。5h30m
私はもう試した:
df.values.apply(lambda x: divmod(x,60))
しかし、それはAttributeError
すべての値にどのように適用できdivmodますか?