When i try to get the importance visualization of the weights in the Logistic Regression model i get an error ':
1 coeff = list(diabetesCheck.coef_)----> 2 labels = list (trainData.columns)3 features = pd.DataFrame()4 features['Features'] = labels5 features['importance'] = coeffAttributeError: 'numpy.ndarray' object has no attribute 'columns'
I understand that this error is is due to the 'trainData' been a numpy array. Is there a way around it? All other visualizations have worked out perfectly