How about converting the Datetime columns to string before concatenating the two dataframes. This way you can have the output you wanted.
from pandas.api.types import is_datetime64_any_dtype
for col in df_current_month.columns:
if is_datetime64_any_dtype(df_current_month[col]):
df_current_month[col] = df_current_month[col].dt.strftime('%Y-%m-%d')
df_current_month['CF'].head()
0 2021-10-01
1 2017-01-12
2 2017-01-12
3 2017-01-12
4 2017-01-12
Name: CF, dtype: object
Unfortunately, you have to do this for both dataframes.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…