How to Display Dataframe next to Plot in Jupyter Notebook : <p>I understand how to display two plots next to each other (horizontally) in Jupyter Notebook, but I don't know if there is a way to display a plot with a dataframe next to it. I imagine it could look something like this:</p>

<p><a href="https://i.stack.imgur.com/Dlsl9.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Dlsl9.png" alt="enter image description here"></a></p>

<p>However, I'm not able to do this, and whenever I print out the dataframe, it appears below my plot...</p>

<p><a href="https://stackoverflow.com/questions/38783027/jupyter-notebook-display-two-pandas-tables-side-by-side">Here</a> is a similar question, but I am also outputting plots within this same cell that I want to be vertically oriented. </p>

<p>I currently have this:</p>

<pre><code># line plots
df_plot[['DGO %chg','DLM %chg']].plot(figsize=(15,5),grid=True)
plt.ylim((-ylim,ylim))

df_plot[['Diff']].plot(kind='area',color='lightgrey',figsize=(15,1))
plt.xticks([])
plt.xlabel('')
plt.ylim((0,ylim_diff))
plt.show()

# scatter plots
plt.scatter(x=df_scat[:-7]['DGO'],y=df_scat[:-7]['DLM'])
plt.scatter(x=df_scat[-7:]['DGO'],y=df_scat[-7:]['DLM'],color='red')
plt.title('%s Cluster Last 7 Days'%asset)
plt.show()

# display dataframe
# display(df_scat[['DGO','DLM']][:10]) &lt;-- prints underneath, not working
</code></pre>

<p><a href="https://i.stack.imgur.com/9TfH4.png" rel="noreferrer"><img src="https://i.stack.imgur.com/9TfH4.png" alt="enter image description here"></a></p>

<p>Where the red box shows where I want my dataframe to appear. Does anyone have any ideas about how to do this?</p>

<p>Thanks for your thoughts!</p>
