I'm trying to merge two dataframes as belows:
| Category | Date|
| --- | --- |
| A | 2022-06-01 |
| A | 2022-06-10 |
| A | 2022-06-20 |
And the dataframe
| Category | Date | Value |
| -------- | ----------|-------|
| A | 2022-06-01| 100 |
| A | 2022-06-12| 200 |
| A | 2022-06-25| 300 |
And the result should be like this. Values of the result df should be based on the closest date of the first df.
| Category | Date| Value |
| -------- | -------------- | --------|
| A | 2022-06-01 | 100 |
| A | 2022-06-10 | 200 |
| A | 2022-06-20 | 300 |
Can someone help?