Guided Project: Clean And Analyze Employee Exit Surveys - [Step 5]

Screen Link:https://app.dataquest.io/m/348/guided-project%3A-clean-and-analyze-employee-exit-surveys/5/verify-the-data

My Code:

What I expected to happen: Two plots should be displayed,in 2 rows and one column format.

What actually happened: (three plots displayed with an one empty plot )

To better help you out, it might be better if -

  • You share your code through a Github link or maybe attach your Notebook here. It’s easier to look at the rest of the code sometimes too, or at the very least paste the code here in the appropriate format so that someone can quickly try your code out on their end and cross-check your code without having to type it out based on an image.
  • You show the entire screenshot (which shows all of the 3 plots)

As of now, the image only shows 2 plots, so it’s a bit unclear on what the problem might be.

Thank you for the reply.I found my mistake and corrected it.

My code was:
import matplotlib.pyplot as plt
fig = plt.subplots()
fig=plt.figure(figsize=(12, 12))
fig.add_subplot(2,1,1)
dete_resignations.boxplot(column=[“CEASE_DATE”])
fig.add_subplot(2,1,2)
tafe_resignations.boxplot(column=[“cease_date”])
plt.show()

I corrected it to:

fig = plt.figure(figsize=(12, 12))
fig.add_subplot(2,1,1)
dete_resignations.boxplot(column=[“CEASE_DATE”])
fig.add_subplot(2,1,2)
tafe_resignations.boxplot(column=[“cease_date”])
plt.show()

1 Like

That’s great you managed to correct it!

I would suggest that you mark your answer above as the solution so that others can quickly refer to it if they face a similar problem :slightly_smiling_face:

1 Like

@vroomvroom please create a separate question instead.