Skip to main contentSkip to solution

____________method appends rows of the second DataFrame at the end of the first DataFrame.

Solution

✅ Correct Option: 1

DataFrame.append() adds the rows of the second DataFrame below the rows of the first and returns a new DataFrame. For example, df1.append(df2) stacks the rows of df2 at the end of df1.


Options 2 and 3: merge() and join() combine DataFrames side by side by matching on columns or index labels, like a database join. They do not stack rows.

Option 4: there is no method called concatinate(). The real function is pd.concat(), which is spelled differently.

In newer pandas versions append() has been removed and pd.concat() is used instead, but the CUET syllabus (NCERT) teaches append().

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question