afizs/be-theboss-in-python

Regex not found error

Giftadene opened this issue · 7 comments

I get error message after opening the chat export and it doesn't work
e

also, I get the "empty data frame" message
e1

I get error message after opening the chat export and it doesn't work e

For the regex, it is simply just replace 'regex' with 're'. Because it was already imported in 'import re'

also, I get the "empty data frame" message e1

I also have the same issue with the empty data frame

I also have the same issue with empty data frame
image

I also have the same issue with empty data frame image

I found the issue why you got empty data frame. It happens when the code does not match with the chat extracted data. So you need to adjust the code to match your data.

May you tell which code that not match with chat extracted data?

afizs commented

The date format must different. Please check the date format of your whatsapp chat and accordingly change the regex.

For the regex error and the empty dataframe. I've solved this way:
imagen

just changing the regular expression and using compile function.

afizs commented

Please use the technique provided by @Pascual2m if you face a regex issue.

#1 (comment)