I have a dataframe from Pandas
my_dataframe = pd.DataFrame({'a': range(5), 'b': range(20, 30, 2)})
my_dataframe
a b
0 0 20
1 1 22
2 2 24
3 3 26
4 4 28
- And a plot from Matplotlib
plt.bar(my_dataframe['a'].index, my_dataframe['a'].values)
What I wanna do is display both of them using IPython and don't losing the default df output format. The first solution of this link answared my question but don't have this format that I talked about. I want the following exemple in the same output cell: