I created a pandas dataframe using the below code. (See the extra code and plt.show()
which is there to create a new plot every time or else we get one plot with all of them in the same plot)
%matplotlib inline
pd.DataFrame(
np.array([[
col,
plt.scatter(data[col], data['SalePrice']) and plt.show()]
for col in data.columns]),
columns=['Feature', 'Scatter Plot']
)
But what I get is this
And at the end of the dataframe, I get all the scatter plots separately.
What I want is, for those graphs to get printed inline, inside the columns, just like the other values.