[~] Refactor

This commit is contained in:
Siarhei Siniak 2021-07-29 09:47:53 +03:00
parent 26fdadc123
commit 0e5e4dcb99

@ -1831,7 +1831,17 @@ def kernel_29():
with io.open(t7[0], 'r') as f: with io.open(t7[0], 'r') as f:
t1 = json.load(f) t1 = json.load(f)
t2 = pandas.DataFrame(t1) t8 = sum([
o['data']
for o in t1
], [])
t10 = re.compile('frame-(\d+)\.jpg')
t9 = sorted(
t8,
key=lambda o: int(t10.match(o['image_id'])[0])
)
t2 = pandas.DataFrame(t9)
t5 = t2.to_xarray() t5 = t2.to_xarray()