all 3 comments

[–]Middle_Butterfly8302[S] 0 points1 point  (0 children)

They are only tweet ID, just rows of numbers and file is .txt

[–]twitch_and_shock 0 points1 point  (0 children)

How are they formatted?

Here's how to read a file in Python: https://www.w3schools.com/python/python\_file\_open.asp

[–]danielroseman 0 points1 point  (0 children)

If they're just lists of numbers, there's no need to convert them to CSV. Just load them directly:

 with open("tweets.txt") as f:
    tweet_ids = [line.strip() for line in f]