text_plain_output_1.png
import json

import os

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

import numpy as np
import pandas as pd
import os

BASE_DIR = '/kaggle/input/youtube-dataset-of-countries/Youtube_data/Countries_data'
LIST_CSV = []
LIST_JSON = []
for file in os.listdir(BASE_DIR):
    if file.endswith('.json'):
        LIST_JSON.append(file)
    else:
        LIST_CSV.append(file)

import json
pd.DataFrame.from_dict(json.loads(open(os.path.join(BASE_DIR, 'IN_category_id.json')).read()))

IN_JSON = json.loads(open(os.path.join(BASE_DIR, 'IN_category_id.json')).read())
IN_JSON['items'][0]['snippet']['title']

IN_JSON