I’m trying to check in Python GUI if the user’s email is valid after every key release. So I set global bool variables, which are at and dotcom for email validity, but every time I input a valid email format. the bools are still set to false. This is my function for checking the email validity These are my GUI
Tag: substring
Rename column containing substring – Pandas
I need to rename columns in containing specific substring. In my case I am using data with columns that are named a specific date dd/mm/yyyy. I want to rename the column based on the yyyy of the column name (eg. 30/06/2020 rename FY1920). Approach I have tried is as follows: also tried: I am sure there is an easy way.
Regex within Pandas DataFrame – finding minimum length between characters
Edit: Updated for reproducibility I am currently working within a Pandas DataFrame, with a list of strings held within each row of a column [Column A]. I am trying to extract the minimum distance between any sublist combination of a keyword list (List B) whilst each row in the Dataframe column contains a list of strings. At a high level,