Histogram Plotting In Python Using Pipeline