RuntimeWarning: invalid value encountered in divide return n/db/n.sum(), bin_edges in matplotlib
So I was following an ML lecture and this is the entire code and this is the dataset (https://archive.ics.uci.edu/dataset/159/magic+gamma+telescope) I was using.