xxxxxxxxxx
df.plot(subplots=True, layout=(1,2))
xxxxxxxxxx
import matplotlib.pyplot as plt
fig, axes = plt.subplots(nrows=2, ncols=2)
df1.plot(ax=axes[0,0])
df2.plot(ax=axes[0,1])
xxxxxxxxxx
In [45]: df = pd.DataFrame(np.random.rand(10, 2), columns=["Col1", "Col2"])
In [46]: df["X"] = pd.Series(["A", "A", "A", "A", "A", "B", "B", "B", "B", "B"])
In [47]: plt.figure();
In [48]: bp = df.boxplot(by="X")