Approach and Solution to break in Top 20 of Big Mart Sales prediction



why this would provide the average visibility of a product? Thank you.
visibility_avg = data.pivot_table(values=‘Item_Visibility’, index=‘Item_Identifier’)


Hi @Hoapham,

The 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.


Thank you!