From 5527f0c35876f1f2e017fa13aa221d1184e81bfb Mon Sep 17 00:00:00 2001 From: Siarhei Siniak Date: Thu, 22 Jul 2021 10:43:43 +0300 Subject: [PATCH] [~] Refactor --- python/tasks/mlb_player.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/python/tasks/mlb_player.py b/python/tasks/mlb_player.py index f5c6d94..3962ffc 100644 --- a/python/tasks/mlb_player.py +++ b/python/tasks/mlb_player.py @@ -1018,3 +1018,10 @@ def kernel_15( t1=t1, ) ) + + t2 = 'baseball glove' + t3 = o_13['o_13']['t1'] + t4 = numpy.where(t3.name.data == t2)[0] + t5 = t4[-1] + t6 = t3.sel(index=t3.index.data[t5]) + pprint.pprint(t6)