Black Lives Matter. Please consider donating to Black Girls Code today.

How can i delete parentheses of x-asix variable?

hi … i can not understand my code…

how can i delete parentheses of x-asix variable ?

This is column

list_spot = ([‘churches’,‘resorts’,‘beaches’,‘parks’,‘theatres’,‘museums’,‘malls’,‘zoo’,‘restaurants’,‘pubs’,‘local_services’,‘burger_shops’,‘hotels_lodgings’,‘juice_bars’,‘art_galleries’,‘dance_clubs’,‘swimming_pools’,‘gyms’,‘bakeries’,‘beauty_spas’,‘cafes’,‘view_points’,‘monuments’,‘gardens’])

plt.figure(figsize=(25,6),dpi=300,facecolor=‘lightblue’,edgecolor=‘w’)
ax = sns.boxplot(data=data1, palette=‘Set3’,saturation=0.7)
ax.set_xticklabels(ax.get_xticklabels(),fontsize=15,rotation=90)
ax.set_ylim(-0.5,5.5)
plt.title(‘Boxplot of review’, fontsize=20)

plt.show()

주석 2020-05-02 231557


but ii is ok … no parentheses of x-asix variable…

plt.figure(figsize=(30,5),dpi=300,facecolor=‘lightpink’,edgecolor=‘w’)
boxplot = data1.boxplot(column= list_spot,grid=True)
plt.xticks(fontsize=15,rotation=90)
plt.yticks(np.arange(0,5.5,step=0.5),fontsize=20)
plt.title(‘Boxplot of review’, fontsize=20)
plt.xlabel(’’,fontsize=1)
plt.ylabel(’’,fontsize=1)
plt.show()

주석 2020-05-02 231557a
please… help my home work …

Hi @anjilina,
Here is Plotly forum, not the Matplotlib group for QA.
Your code uses Matplotlib as plotting library.