FAQ: Handling Complex Datasets - Vertical Concatenation

This community-built FAQ covers the “Vertical Concatenation” exercise from the lesson “Handling Complex Datasets”.

Paths and Courses
This exercise can be found in the following Codecademy content:

FAQs on the exercise Vertical Concatenation

There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply () below.

If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.

Join the Discussion. Help a fellow learner on their journey.

You can also find further discussion and get answers to your questions over in Language Help.

Agree with a comment or answer? Like () to up-vote the contribution!

Need broader help or resources? Head to Language Help and Tips and Resources. If you are wanting feedback or inspiration for a project, check out Projects.

Looking for motivation to keep learning? Join our wider discussions in Community

Found a bug? Report it online, or post in Bug Reporting

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

Copypasting the solution to part 3 of this excercise produces this error: `{“passed”: false, “errorMessage”: “invalid syntax (`. My own solution was basically the same but with some extra spaces after the ‘:’ and such. All previous parts have been passed and i tried re-running all the cells. Also, it does seem to produce the right output in the notebook, so it’s just the “test work” step that fails.

The code currently looks like this:

``````## YOUR SOLUTION HERE ##

# rename Location_EUROPE
dfs[3] = dfs[3].rename({'Location_EUROPE':'Location'},axis=1)

# re-do the concatenation to generate full_df
full_df = pd.concat(dfs)

#show output
``````

Is this a bug or am i missing something?

2 Likes

I’ve been having the exact same problem!

Haven’t found a proper solution yet, but clicking the ‘replace with solution’ button after navigating to ‘solution’ under ‘get unstuck’ should at least get you past this exercise so you can finish the course.

I encountered a similar issue with the third question. However, I proceeded to the fourth question, executed it, and unexpectedly, the green checkmark appeared for the third question. I had to rerun it to obtain the green checkmark for question 4…

With the last question i tackled it slightly different to how they wanted it and it refused me to continue. Ive got the exact same number and even went above for what they asked. Is my code anyway incorrect?