https://drive.google.com/file/d/1AqZpvDFNlPlNvVcPGAqVjik-cMyHP39z/view?usp=sharing
link to drive
i m not able to plot the bar graph
it’s showing error
can’t convert string to float: ‘battery power’
https://drive.google.com/file/d/1AqZpvDFNlPlNvVcPGAqVjik-cMyHP39z/view?usp=sharing
link to drive
i m not able to plot the bar graph
it’s showing error
can’t convert string to float: ‘battery power’
Hey @akshat21
Try these lines of code to plot the bar graph:
plt.bar(range(len(featureimp.index)), featureimp['importance'], align='center')
plt.xticks(range(len(featureimp.index)), list(featureimp.index))
plt.show()
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.