Add column in custom_data argument in bar chart

Hello Guys
i am trying to do in 1 hour to add column in custom_data argument for cross filtering but the query add first there is not country column i don’t how to add country column in custom data argument for cross filtering

    data =  resorts.query("Country == @country").groupby('Resort',as_index=False).agg({x_bar:'sum'}).
            sort_values(by=x_bar,ascending=False).iloc[:10]

    

fig = px.bar(data, x='Resort', y=x_bar,custom_data={resorts['Country']},hover_name='country')

this error come

*custom_data (str, or list of str or int, or Series or array-like )

on documentation it allowed to pass a series or list