Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Regular Expressions - so close yet so far
Post: RE: Regular Expressions - so close yet so far

(May-02-2023, 10:12 PM)bowlofred Wrote: I can only see your output, not what the regex is getting. For instance, if there is space between the weight and colon, that might explain things. Can you ...
bigpapa General Coding Help 5 1,014 May-02-2023, 10:26 PM
    Thread: Regular Expressions - so close yet so far
Post: RE: Regular Expressions - so close yet so far

(May-02-2023, 08:17 PM)bowlofred Wrote: Your findall only matches when there is a "weight" followed by one character from [;:]. That character isn't optional. If it's missing, no match. So you wa...
bigpapa General Coding Help 5 1,014 May-02-2023, 08:23 PM
  Sad Thread: Regular Expressions - so close yet so far
Post: Regular Expressions - so close yet so far

Hi all, So I have this code below that filters the weight column in a data frame. And I want to remove the : and ; in-front of the number: for entry in df.loc[df["Weight"] .str...
bigpapa General Coding Help 5 1,014 May-02-2023, 07:01 PM
    Thread: Pulling Specifics Words/Numbers from String
Post: RE: Pulling Specifics Words/Numbers from String

(May-01-2023, 07:00 PM)deanhystad Wrote: Is net weight always the first number following the colon? Your number, "17, 000. 00" contains extra spaces. Are they really there, or is that a typo? Thi...
bigpapa General Coding Help 2 796 May-01-2023, 07:22 PM
    Thread: Pulling Specifics Words/Numbers from String
Post: Pulling Specifics Words/Numbers from String

Hi There, I know this may seem like a silly question because there might be 1000s of tutorials but I just can't quite figure it out. I have a data frame and it has a column (columnA) where its an ...
bigpapa General Coding Help 2 796 May-01-2023, 06:43 PM

User Panel Messages

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