Skip to content
CampusEduX

Problem 3: Load Multiple CSV Files and Combine Them

Easypython
Learn the Concept: Loading Datasets

Problem Description

Write a Python program that loads two separate CSV files with the same column structure and combines them into a single DataFrame using pd.concat().

Input

Two CSV file paths with identical column structures.

Output

A single combined DataFrame containing all rows from both files.

Constraints

  • Both files must have exactly matching column names.

Example Input

text
"sales_jan.csv", "sales_feb.csv"

Example Output

text
Combined shape: (200, 4)

Concepts Covered

pd.read_csv(), pd.concat().

Related Problems

  • Problem 1: Load and Inspect a CSV File
    Easy · python
    Solve Problem
  • Problem 2: Handle a Custom Delimiter
    Easy · python
    Solve Problem
  • Problem 4: Load an Excel File and Select a Specific Sheet
    Easy · python
    Solve Problem

Input (stdin)

Output

Run your code to see output here...