There are two other similar questions [1], [2]; but none helped me in my issue.
I did concat several columns of df at the beginning and at the end of d
df
d