Practical Implementation of Pandas Concatenation

Free Pandas course with real-time 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)

Your 15 seconds will encourage us to work even harder
Please share your happy experience on Google

follow dataflair on YouTube

Leave a Reply

Your email address will not be published. Required fields are marked *