From c1dd95c765741f54d7c21956833932d07f8dffc1 Mon Sep 17 00:00:00 2001 From: Siarhei Siniak Date: Wed, 21 Jul 2021 09:57:32 +0300 Subject: [PATCH] [~] Refactor --- python/tasks/mlb_player.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/python/tasks/mlb_player.py b/python/tasks/mlb_player.py index 1956913..f5c6d94 100644 --- a/python/tasks/mlb_player.py +++ b/python/tasks/mlb_player.py @@ -1003,3 +1003,18 @@ def kernel_14( return dict( o_13=o_13, ) + +def kernel_15( + o_14, +): + t1 = pandas.DataFrame( + numpy.unique( + o_14['o_13']['t1']['name'].data, + return_counts=True + ) + ).T + pprint.pprint( + dict( + t1=t1, + ) + )