Creating histogram plot in Python