import pandas as pd

# create a dataframe
df = pd.DataFrame({'id': [1, 2, 3, 4, 5],
                   'name': ['Alice', 'Bob', 'Charlie', 'Dave', 'Eve'],
                   'age': [25, 30, 35, 40, 45]})

# create a list of arrays with the id and name columns
arrays = [df['id'], df['name']]

# create a multi-level index from the arrays
index = pd.MultiIndex.from_arrays(arrays, names=('id', 'name'))

# set the new index as the primary key index of the dataframe
df.set_index(index, inplace=True)

# display the dataframe with the new primary key index
print(df)