import pandas as pd
# Example DataFrames
df1 = pd.DataFrame({'A': [1, 2, 3], 'B': [4, 5, 6]})
df2 = pd.DataFrame({'A': [7, 8, 9], 'B': [10, 11, 12]})
# Merge DataFrames by rows
merged_df = pd.concat([df1, df2], axis=0)
print("Merged DataFrame:")
print(merged_df)
Output: