Since concat on top of one another, so have to use .concat
IntuitionSince need to concat one dataframe on top of other, so use .concat. By default it is inner join so only common column between two dataframe are selecte
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->
Since need to concat one dataframe on top of other, so use `.concat`. By default it is inner join `so only common column` between two dataframe are selected.
And we can use `axis=0` to align one on another and `axis=1` for side by side.
# Approach
<!-- Describe your approach to solving the problem. -->
so .concat([df1,df2]) return a dataframe.
`d.concat([df1,df2], join='inner', axis=0)`
# Complexity
- Time complexity:
<!-- Add your time complexity here, e.g. $$O(n)$$ -->

- Space complexity:
<!-- Add your space complexity here, e.g. $$O(n)$$ -->

# Code
```pythondata []
import pandas as pd

def concatenateTables(df1: pd.DataFrame, df2: pd.DataFrame) -> pd.DataFrame:
    return pd.concat([df1,df2], join='inner')
   
```
['Pandas']