回答編集履歴

1

カッコ追加

2022/09/12 23:56

投稿

bsdfan
bsdfan

スコア4578

test CHANGED
@@ -8,5 +8,5 @@
8
8
  df['a'].expanding()
9
9
  .apply(
10
10
  lambda s: (s.iloc[-2::-1].cummax() < s.iloc[-1]).sum()
11
- ).astype(int)
11
+ ).astype(int))
12
12
  ```