Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Combining Data for Analysis!
You have completed Combining Data for Analysis!
Preview
Welcome! In this video, I will provide my solution to the second challenge.
Challenge 2 solution
billboard_all = pd.concat([billboard, billboard19])
spotify_all = pd.concat([spotify, spotify19])
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
We have two data frames
containing Billboard data.
0:00
billboard contains data from 2017 and
2018,
0:01
billboard19 contains 2019 data.
0:06
We wanna concatenate these datasets into
a new data frame called billboard_all.
0:10
The required argument is a Python
list containing the data frames.
0:17
We don't need any optional
arguments in this case.
0:22
So we type billboard_all
0:25
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up