text_plain_output_1.png
import pandas as pd

path = '../input/learnplatform-covid19-impact-on-digital-learning/engagement_data'
files = glob.glob(path + '/*.csv')
all_files = []
for filename in files:
    df = pd.read_csv(filename, index_col=None, header=0)
    district_id = filename.split('/')[4].split('.')[0]
    df['district_id'] = district_id
    all_files.append(df)
engagement_data = pd.concat(all_files)
engagement_data = engagement_data.reset_index(drop=True)
product_info = pd.read_csv('../input/learnplatform-covid19-impact-on-digital-learning/products_info.csv')
districts_info = pd.read_csv('../input/learnplatform-covid19-impact-on-digital-learning/districts_info.csv')

engagement_data.shape
engagement_data.columns

engagement_data.isnull().sum()