I am trying to create a subtitle grid based on a Pandas groupby object. I would like each chart to be based on two columns of data for one group of a groupby object. Fake Dataset:
C1,C2,C3,C4 1,12,125,25 2,13,25,25 3,15,98,25 4,12,77,25 5,15,889,25 6,13,56,25 7,12,256,25 8,12,158,25 9,13,158,25 10,15,1366,25
I tried the following code:
import pandas as pd import csv import matplotlib as mpl import matplotlib.pyplot as plt import math
But it generates 4 identical subnets with all the data plotted on each (see example below):

I would like to do something like the following to fix this:
for i,j in grouped: j.plot(x='C1',y='C3',ax=axs) next(axs)
but i get this error
AttributeError: object 'numpy.ndarray' does not have attribute 'get_figure'
I will have a dynamic number of groups in the groupby object that I want to build, and many more elements than the fake data that I provided. That's why I need an elegant dynamic solution and a data set of each group, put on a separate subplot.