Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: If statement containing apostrophe
Post: RE: If statement containing apostrophe

I have been able to create a work around by using the "re" package: from line 29 onwards: for i in range(0,len(gameplay_A)): answer = input(gameplay_A[i] + "\n") new_answer = re.sub("[^a-zA-Z]...
AshBax General Coding Help 11 5,240 Jul-09-2019, 01:34 PM
    Thread: If statement containing apostrophe
Post: RE: If statement containing apostrophe

firstly - thanks to everyone who has kindly looked at this. in the code: answer = input(gameplay_A[i] + "\n") if answer.lower() == gameplay_B[i].lower(): print("\n\t ** Correc...
AshBax General Coding Help 11 5,240 Jul-09-2019, 09:09 AM
    Thread: If statement containing apostrophe
Post: RE: If statement containing apostrophe

Thanks. the code is: answer = input(gameplay_A[i] + "\n") if answer.lower() == gameplay_B[i].lower(): print("\n\t ** Correct ** \n\n")
AshBax General Coding Help 11 5,240 Jul-08-2019, 12:29 PM
    Thread: If statement containing apostrophe
Post: RE: If statement containing apostrophe

Thanks for the quick response.. The issue remains, but I have amended the original post to reflect this
AshBax General Coding Help 11 5,240 Jul-08-2019, 11:18 AM
    Thread: If statement containing apostrophe
Post: If statement containing apostrophe

Hi, I'm looking to compare strings (that have been pulled in from a csv) to a string created from an input. All works fine, until the string contains an apostrophe. so e.g if the csv contains "I don'...
AshBax General Coding Help 11 5,240 Jul-08-2019, 10:57 AM
    Thread: Sorting csv or txt file on date and time
Post: RE: Sorting csv or txt file on date and time

thanks again - will give that a try. Always nice to have alternatives
AshBax General Coding Help 4 8,320 Mar-27-2019, 02:02 PM
    Thread: Sorting csv or txt file on date and time
Post: RE: Sorting csv or txt file on date and time

Wow - thank you so much that works perfectly
AshBax General Coding Help 4 8,320 Mar-27-2019, 10:48 AM
    Thread: Sorting csv or txt file on date and time
Post: Sorting csv or txt file on date and time

Hi, I'm trying to sort a large txt file on 2 columns: date and then time: I've enclosed a small sample of this: 1,2,3,4,5,6,7,8,9,10 20190218,17:12:57,1903,1,0,,,,,20190217 20190218,18:8:34,1903,...
AshBax General Coding Help 4 8,320 Mar-27-2019, 09:25 AM
    Thread: Time Data does not match format
Post: RE: Time Data does not match format

Haha - I'm so sorry you actually had to look at that. Thanks so much..... really appreciate it
AshBax Data Science 2 28,833 Nov-13-2018, 12:19 PM
    Thread: Time Data does not match format
Post: Time Data does not match format

Hi, I have the following code: import pandas as pdm from datetime import datetime,timedelta timeFormat = '%d/%m?%y %H:%M:%S' dataFrame = pdm.read_csv('C:\\', sep=',', index_col=None) list_stamps =...
AshBax Data Science 2 28,833 Nov-12-2018, 08:09 PM

User Panel Messages

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