text_plain_output_1.png
import pandas as pd

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

train = pd.read_csv('/kaggle/input/covid19-global-forecasting-week-4/train.csv')
test = pd.read_csv('/kaggle/input/covid19-global-forecasting-week-4/test.csv')

def impute(df):
    df['Province_State'] = df['Province_State'].mask(df['Province_State'].isnull(), df['Country_Region'])
    return df
train_imputed = impute(train)

holdout = impute(test)
holdout.head()