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

python

#1


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


#2

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.


#3

Thank you!