I have a Pandas DataFrame like this:
A B C Date1 Date2
0 a b c 02/19/2022 02/20/2022
1 aa bb cc 02/26/2022 02/27/2022
I want to combine Date1 and Date2 into one column, and duplicate the other column values that correspond to it. Into a dataframe that looks like this:
A B C Date
0 a b c 02/19/2022
1 a b c 02/20/2022
2 aa bb cc 02/26/2022
3 aa bb cc 02/27/2022
I know how one would do this once this dataframe has been imported into SQL using join, but is there a way to do this directly in the Pandas dataframe before uploading to a database?