I am trying to plot the number of songs listened to by day, I have a loop that deletes entries where the value is zero, but I still see zeroes on the plot.
Here is my loop that deletes entries with values of zero:
real_dr = set(tbday.keys())
for day in real_dr:
if tbday[day] == 0:
del tbday[day]
Here is a printout of the first entries of the dict: printout of dict keys
Here is the calplot created: partial calplot screenshot
As you can see, it's hard to distinguish between the low numbers such as 1 and the zeroes in the middle.
How do I plot this with gray spots (like the beginning of the top year) instead of the zeroes?
I have tried setting the zero values to None and removing them altogether with no change in the plot
Update:
After some investigation, I see that it renders fine, like in the screenshot below if and only if there are less than or equal to 516 items in the dictionary the DataFrame pulls from screenshot of what it should look like
If there are more than 516 entries in that dict, the graph looks like the first one (not the desired look). I'm not sure if this is relevant information, but it struck me as odd