import pandas as pd
# create a sample dataframe
data = {'Category': ['A', 'A', 'B', 'B', 'B', 'C'],
'Value': [10, 20, 30, 40, 50, 60]}
df = pd.DataFrame(data)
# compute the mean of each category
mean_df = pd.pivot_table(df, values='Value',
index='Category', aggfunc='mean').reset_index()
print(mean_df)