text_html_output_1.png
from pandas.io.json import json_normalize

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

with open('../input/matches.txt') as file:
    CR = [x.strip() for x in file.readlines()]

deserialize_cr = [json_normalize(eval(r1)) for r1 in CR[0:10000]]
df_cr = pd.concat(deserialize_cr, ignore_index=True)
df_cr.columns = ['Left Clan', 'Left Deck', 'Left Player', 'Left Trophy', 'Right Clan', 'Right Deck', 'Right Player', 'right Trophy', 'Result', 'Time', 'Type']

LD = [len(left_deck) for left_deck in df_cr['Left Deck']]
RD = [len(right_deck) for right_deck in df_cr['Right Deck']]
(set(LD), set(RD))