Questions tagged [calmap]

7 questions
2
votes
1 answer

How to create a custom color legend for a calendar-based heatmap plot (calmap)?

I have a dataframe that contains numerical data collected over the whole year, which I want to plot as a heatmap over time (similar to Github contributions), where months are plotted along the x-axis days are plotted along the y-axis color of each…
pinguino
  • 23
  • 6
1
vote
1 answer

Why am I not able to feed my data series from pandas into calmap.yearplot? Trying to create a calendar heat map

Beginner question here. What I'm trying to build: A program that takes data from a CSV and creates a calendar heat map from it. I am a language learner (language as in spanish, japanese, etc) and the data set I'm using is a CSV that shows how many…
0
votes
0 answers

Omit Weekends from calmaps (calplots)

Given the following example from here, I would like to not display the rows for Saturday or Sunday. I have tried resampling the dataframe without weekends before using it in the calmap function, but the source code shows that missing days are…
Dance Party
  • 3,459
  • 10
  • 42
  • 67
0
votes
2 answers

How to only plot nonzero values with Calplot

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…
Brett
  • 1
  • 1
0
votes
1 answer

Why do Calplot and and Calmap plots not show up?

When I use the examples to make a calendar heatmap and run my Python script from the terminal, I see my computer briefly open then close IDLE and the script appears to be finished running. import numpy as np; np.random.seed(sum(map(ord,…
Brett
  • 1
  • 1
0
votes
0 answers

Plotly Calmap (heatmap calendar): Mark certain dates

I have used calmap to analyze whether data has been imported correctly over the past 2.5 years. I have a few gaps, some of which are easy to explain with holidays. However, I need to google search for those dates to confirm because they are not…
Elena
  • 45
  • 5
0
votes
1 answer

How to draw a heatmap using calmap with the colorbar on the ax?

I have a pandas df as follows: ipdb> df_calmap count start_datetime 2021-03-10 17:40:24 1 2021-03-11 23:41:34 1 2021-03-12 00:41:42 1 2021-03-12 13:11:25 1 2021-03-15 00:02:49 1 2021-03-15…
Albert Vonpupp
  • 4,557
  • 1
  • 17
  • 20