enter image description here
plt.pie(data=df[\'rating\'].value_counts(), labels= df[\'rating\'], autopct=\'%.1f%%\') plt.show()
TypeErr