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)If you are Happy with DataFlair, do not forget to make us happy with your positive feedback on Google

