I have a pandas dataframe in Python that looks like this:
Jan 15 Feb 15 March 15 April 15
1 val val val val
2 val val val val
3 val val val nan
4 val nan val nan
5 val nan nan nan
I want to plot a graph as follows. The X axis is the months (Jan 15 | Feb 15 | March 15 | April 15), and the bars are like so:
Jan 15: 5
Feb 15: 3
March 15: 4
April 15: 2
^ this is the count of non-null values for each month.
Any help on how to plot it with matplotlib or anything else?
EDIT: the values in the df are tuples like so: (val1, val2).
