I have two CSV files, I want to merge its based on the common column Date using pandas data frame, Below is the code what I am using for this, but after merging, CSV2 column values coming as a NAN, I don't understand the problem, please can anyone explain the issue with the code or file, Thanks
NB: Row no for both of CSV are not the same (Row no For C02 = 85 and SG_Data: 115) CSV1
import pandas as pd
df1 = pd.read_csv('C02B.csv')
df2 = pd.read_csv('S2_Imprint.csv')
cd = df1.merge(df2, how='left', on='Date')
output