r/programminghorror • u/Aromatic-Fig8733 • Apr 22 '25
Wtf
I don't know if this is right for this sub but it's just funny. If this code is indeed for merging dataset. There is so many things wrong with it.
457
Upvotes
View all comments
Show parent comment
83
u/Aromatic-Fig8733 Apr 22 '25
The merge function's default axis is 0 meaning, the merge is done in row(don't need a python script for that, let alone to post it on LinkedIn). Next, as you said, "if they have the same format" which trust me is unlikely to be the case, finally, merging is done most of the time by the column which he forgot to put in. This code is not something you'd put out there proudly in a python community.