text_html_output_1.png
import os

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)
print(LIST_JSON)
print(LIST_CSV)