datefinder icon indicating copy to clipboard operation
datefinder copied to clipboard

Dates don't show up when iterating thru cells of a dataframe, but work fine when string is given separately

Open SMESetty opened this issue 6 years ago • 0 comments

When I specify the string to string_with_dates (like below), I am able to extract the dates.

import datefinder
string_with_dates = ''' ghh '''
                          
matches = datefinder.find_dates(string_with_dates)
for match in matches:
    print(match)
    

But when I put these strings in a dataframe and iterate thru a 'for' loop, I get error saying "OverflowError: Python int too large to convert to C long". A few of the dates are extracted properly, a few are wrongly extracted (shows current date instead of extracting) and for a few, there is no output even though there are dates in the string inside dataframe. When these strings that don't show output are explicitly put into the above function, the dates are extracted properly. Please help

SMESetty avatar Aug 07 '19 05:08 SMESetty