text_plain_output_1.png
from pandas.io.json import json_normalize

from tqdm.notebook import tqdm

import json_lines

import pandas as pd

data0 = []
with open('../input/youtubes-channels-dataset/YouTubeDataset_withChannelElapsed.json', 'rb') as f:
    for i, item in enumerate(json_lines.reader(f)):
        if i < 10000:
            data0 += [item]

users0 = json_normalize(data0[0][0])
users0

for i, item in tqdm(enumerate(data0[0])):
    if 0 < i and i < 10000:
        usersi = json_normalize(item)
        users0 = pd.concat([users0, usersi])

print(len(users0))