Hi in Mission 145 https://app.dataquest.io/m/145/histograms-and-box-plots/8/multiple-box-plots, i have a question.
I used square bracket in the ax.set_xticklabels([num_cols],rotation = 90) and it ends up setting the labels all in 1 line. Am afraid i am still confused on when to use square bracket or when not to use square brackets when working with charts
num_cols = ['RT_user_norm', 'Metacritic_user_nom', 'IMDB_norm', 'Fandango_Ratingvalue'] fig, ax = plt.subplots() ax.boxplot(norm_reviews[num_cols].values) ax.set_xticklabels([num_cols],rotation = 90) ax.set_ylim(0,5) plt.show()
i do realize the right answer is by removing the square bracket, but wants to know when should i use square bracket and when not to