3064. Reshape Data: Concatenate
My accepted Python solution to LeetCode problem 3064, Reshape Data: Concatenate, running in 335ms.
- Difficulty: Easy
- Python
- Runtime 335ms
- Memory 66.9MB
- Updated
Read the problem on LeetCode View on GitHub
The problem statement is LeetCode’s and stays on their site. What follows is my accepted solution.
Python
Accepted on LeetCode — runtime 335ms, memory 66.9MB, accepted 2026-01-02.
import pandas as pd
def concatenateTables(df1: pd.DataFrame, df2: pd.DataFrame) -> pd.DataFrame:
return pd.concat([df1, df2], ignore_index=True)