Exclude low statistics bins from an Histo

Hi,
I would like to know if there is a method to draw an histogram by excluding low statistic bins by using a criteria like n>5 for example.
Or should I loop over the histo ? :confused:

Thanks for your help