I have two dataframes that I need to merge but the results kept sending (NAN) values. I changed the how but still no impact.
Used Function
PG =pd.merge(left=PG.astype(str), right=SCH.astype(str), how='left',left_on='Merged', right_on='Merged' , suffixes=('', '_remove'))
DF 1
Merged
0 140042022-05-09 00:00:00
1 27942022-05-10 00:00:00
2 140042022-05-11 00:00:00
3 140062022-05-10 00:00:00
4 140062022-05-11 00:00:00
.. ...
DF2
Merged Today-Shift
0 147212022-03-01 00:00:00 0.291667
1 147212022-03-02 00:00:00 0.291667
2 147212022-03-03 00:00:00 0.291667
3 147212022-03-04 00:00:00 0.291667
4 147212022-03-05 00:00:00 OFF
... ... ...
Result
Today-Shift
0 NaN
1 NaN
2 NaN
3 NaN
4 NaN