text_plain_output_1.png
import pandas as pd

people = pd.read_csv('../input/people.csv')
activity_train = pd.read_csv('../input/act_train.csv')
activity_test = pd.read_csv('../input/act_test.csv')

df = activity_train.merge(people, how='left', on='people_id')
df_test = activity_test.merge(people, how='left', on='people_id')

df = df.fillna('0', axis=0)
df_test = df_test.fillna('0', axis=0)

df.head()