In [19]: for index, col in enumerate(Log Sale Price): ax[index, e].scatter (df_train [col], df_train[SalePrice ]) ax[inde In [19]: for index, col in enumerate(‘Log Sale Price’): ax[index, e].scatter (df_train [col], df_train[‘SalePrice’ ]) ax[index, e].title . set_text (f”{col) x Sales Price”) ax[index, e].set xlabel(f” {col)”) ax[index, e].set ylabel( “Sale Price”) ax[index, 1].scatter (df_train [ col], df train[‘L SalePrice ) ax[index, 1].title. set_text (f” { col} X Log Sales Price”) ax[index, 1.set xlabel (f” {col)”) ax[index, 1].set ylabel (“Log Sale Price”) plot.show() Traceback (most recent call last) TypeError in 1 for index, col in enumerate(‘Log Sale Price): ax[index, e].scatter (df_train[ col], df train[ ‘SalePrice’1) ax[index, e].title.set_text (f”(col) X Sales Price”) ax[index, e].set_xlabel (f” (col)”) ax[index, e].set ylabel (“Sale Price”) – 2 3 4 TypeError: ‘function object is not subscriptable



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *