Check out example codes for "X_feature = df_adv_data.index[['Newspaper','Radio','TV']]". It will help you in understanding the concepts better.

Code Example 1

X_feature = df_adv_data.index[['Newspaper','Radio','TV']]

Learn ReactJs, React Native from akashmittal.com