Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Regex won't replace character with line break
Post: RE: Regex won't replace character with line break

(Jan-11-2020, 11:47 PM)Gribouillis Wrote: Try this perhaps import re s = "Text,10,0.0Text,9,8.0Text,5.45,2.3" new = re.sub(r'(?<=[0-9])(?=[A-Z])', '\n', s) print(new)Output:Text,10,0.0 Text,9,8....
Tomf96 General Coding Help 2 2,500 Jan-12-2020, 12:14 PM
    Thread: Regex won't replace character with line break
Post: Regex won't replace character with line break

using python 3.8.1 I am trying to write a string to a csv file. Before I write the string, however, I want to add line breaks into the string. mystring is a set of values separated by ','. I want to...
Tomf96 General Coding Help 2 2,500 Jan-11-2020, 07:42 PM
    Thread: Help with making a formula using variables that I have declared within for loops.
Post: Help with making a formula using variables that I ...

I am using python 3.8.1 and pandas. I have two sets of data as csv files. orders.csv and vouchers.csv. Using vouchers.csv I have grouped the dataframe by 'Name' by iterating through the csv file in a...
Tomf96 Data Science 2 1,853 Jan-11-2020, 01:59 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020