Create heatmap by grouping two columns
Create heatmap by grouping two columns Question: I want to create a heatmap array using plt.imshow(). But I have some doubts about how to transform my dataframe and fill the 7×24 array. My goal is to count all the visits that have the same day and hour: visits = [ (1,13), (2,1), (1,13), (1,13), (2,18), …