[~] Refactor
This commit is contained in:
parent
47a1d7da79
commit
e556b33fca
@ -30,6 +30,24 @@ def kernel_1():
|
|||||||
with io.open(t4, 'rb') as f:
|
with io.open(t4, 'rb') as f:
|
||||||
t3 = pickle.load(f)
|
t3 = pickle.load(f)
|
||||||
|
|
||||||
|
|
||||||
return dict(
|
return dict(
|
||||||
t3=t3,
|
t3=t3,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
def kernel_2(o_1):
|
||||||
|
t2 = '/kaggle/input/mlb-player-digital-engagement-forecasting/train.csv'
|
||||||
|
t1 = pandas.DataFrame(
|
||||||
|
sum(
|
||||||
|
[
|
||||||
|
json.loads(o)
|
||||||
|
for o in o_1['t3'][t2].playerTwitterFollowers.values
|
||||||
|
if isinstance(o, str)
|
||||||
|
],
|
||||||
|
[]
|
||||||
|
)
|
||||||
|
).to_xarray()
|
||||||
|
|
||||||
|
return dict(
|
||||||
|
t1=t1,
|
||||||
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user