to add certain symbol after every three got splited lines Something like that?? – Answer This code looks if there are three or more commas in the text. If it is, it splits the text into 4 parts, then concats the 3 first parts and adds an @ before the third comma and redo the same process with the remaining
Tag: text-manipulation
How to save pandas textmanipulation as csv in the correct form
I have a *.txt file with numbers. I want to eliminate the spaces. The raw data looks like this If I use the following I get which I want. But if I save it to csv with I get as file values: If I use the quoating = csv.None or 3 (same) The file looks like: Just using space or