I am using plt.hist() function to show histogram. When I tried it on a smaller dataset, everything works fine. However, my original dataset contains nearly 30k samples, for which I need to show on that histogram 6 values per sample. I am aware this is a lot, but what I need help with is how to make the compilation time in my case smaller. I am okay waiting 10 minutes, but yesterday I was waiting for the result over an hour and I gave up.
How can I optimize it and reduce the compilation time? My first idea was adding bins to that function, so something like this:
plt.hist(values, bins=50)
But I am not sure what exactly bins do. Will this result in printing the histogram too general for my data or will it just take 50 first values from my data? Besides, will it shorten the compilation time? What can I do?