My current prof entered this code in our tutorial jupyter notebook:
f = plt.figure(figsize=(24, 4))
sb.boxplot(data = hp, orient = "h")
but in previous year's tutorial videos, this was the code:
f, axes = plt.subplots(1, 1, figsize=(24,4))
sb.boxplot(hp, orient = "h")
I have tried to run the 2nd code but it shows up as an error
The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
This was the error that I got. I am not sure why it can run on the previous year's tutorial videos but can't on my notebook.