I have the following dataframe
id x1 y1 x2 y2
0 431634.751688 4.581910e+06 431692.792776 4.581814e+06
1 431930.133825 4.581873e+06 431938.831274 4.581865e+06
2 431926.171004 4.581867e+06 431930.133825 4.581873e+06
3 431930.133825 4.581873e+06 431936.892345 4.581880e+06
The values (x1, y1) are the starting point coordinates, and (x2, y2) belong to the ending point.
How can I turn the single coordinates into linestrings?