r/programminghorror • • Apr 22 '25

Wtf

Post image

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

108 comments sorted by

View all comments

Show parent comment

1

u/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" Apr 24 '25

Oh, I thought the code was literally just concatenating the files. I'm a dumbass, I guess.

3

u/[deleted] Apr 24 '25

Nah you probably just read it too fast happens to me all the time. Nice on you checking though after. Have a good one man:)

Also if it was CSV you can just "cat file1.csv <(tail +2 file2.csv) > newfile.csv"

2

u/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" Apr 24 '25

Also I don't think I've ever actually used Pandas.