Practical Implementation of Pandas Concatenation
Get Job-Ready: Data Analysis using Python with 70+ Projects Start Now!!
Program 1
import pandas as pd
df1=pd.DataFrame({'empname':['Vivek','Dipesh','Rajesh'],'Age':[45,44,36]})
df2=pd.DataFrame({'empname':['Vivek','Dipesh','Vishal'],'Salary(in Lakhs)':[23,16,10]})
df3=pd.concat([df1,df2],ignore_index=True)
print(df3) Did we exceed your expectations?
If Yes, share your valuable feedback on Google

