1. 学ぶ
  2. /
  3. コース
  4. /
  5. Joining Data with pandas

Connected

演習

Concatenation basics

You have been given a few tables of data with musical track info for different albums from the metal band, Metallica. The track info comes from their Ride The Lightning, Master Of Puppets, and St. Anger albums. Try various features of the .concat() method by concatenating the tables vertically together in different ways.

The tables tracks_master, tracks_ride, and tracks_st have loaded for you.

指示1 / 3

undefined XP
  • 1
    • Concatenate tracks_master, tracks_ride, and tracks_st, in that order, setting sort to True.
  • 2
    • Concatenate tracks_master, tracks_ride, and tracks_st, where the index goes from 0 to n-1.
  • 3
    • Concatenate tracks_master, tracks_ride, and tracks_st, showing only columns that are in all tables.