[~] Refactor

This commit is contained in:
Siarhei Siniak 2021-07-19 10:13:50 +03:00
parent 0c4029d3f4
commit b2d8b6cfc0

@ -195,7 +195,7 @@ def kernel_4(
} }
""" """
t1 = numpy.where(o_3['t5']['events']['gamePk'] == 634280) t1 = numpy.where(o_3['t5']['events']['gamePk'] == 634280)[0]
t2 = o_3['t5']['events'].sel(index=t1) t2 = o_3['t5']['events'].sel(index=t1)
t3 = o_3['t5']['games'].to_dataframe().iloc[-1].to_dict() t3 = o_3['t5']['games'].to_dataframe().iloc[-1].to_dict()
assert t3['gamePk'] == 634280 assert t3['gamePk'] == 634280