[LeetCode] Pandas / 2888. Reshape data concatenate

2024. 7. 8. 15:03Coding/LeetCode-Pandas

문제 링크

https://leetcode.com/problems/reshape-data-concatenate/description/

 

문제

 

코드 

import pandas as pd

def concatenateTables(df1: pd.DataFrame, df2: pd.DataFrame) -> pd.DataFrame:
    return pd.concat([df1, df2])