I have a very large text file(20GB) which as rows like this,
1 Some text
1 More text
2 Text
2 Follow up text
..
..
n
I want to covert file to like this:
1, sometext, more text
2, text , followup text
How can i do it python. I can not keep entire file in memory.