why this would provide the average visibility of a product? Thank you.
visibility_avg = data.pivot_table(values=‘Item_Visibility’, index=‘Item_Identifier’)
aggfunc in pivot table has a default value
np.mean . Since it is not defined here, the pivot table will be created considering the mean values.