regions = ['North America', 'Europe', 'Japan', 'Other'] na_sales = df['NA_Sales'].sum() eu_sales = df['EU_Sales'].sum() jp_sales = df['JP_Sales'].sum() oth_sales = df['Other_Sales'].sum() Write a function that create a pd.DataFrame with this data. Example output: North America 1111 Europe 1234 Japan 3456 Other 5678
def create_sales_df(df): return pd.DataFrame({'regions': ['North America', 'Europe', 'Japan', 'Other'], 'sales': [df['NA_Sales'].sum(), df['EU_Sales'].sum(), df['JP_Sales'].sum(), df['Other_Sales'].sum()]}) create_sales_df(df)