java.lang.NoClassDefFoundError from every class every day

I have tried reinstalling netbeans, I have tried reinstalling java. I'm not sure what's going on but I get this exception at random from every class until I restart netbeans. Anyone with similar...

Find all quarters between 2 dates

I'm trying to find all quarters between 2 given dates. For example if the current date is today(15 Jan 2013) and a date in the past is 01 Jan 2012, I should be getting the following result: Dec...

Error in pip install datefinder

While I was trying to pip install python package "datefinder", I met the error about regex and visual c++. I have viewed lots of Stackoverflow posts and cannot find a solution yet. One post is...

How to extract time date period information from raw sentences in Python

Input: Valid for ticketing and travelling Starting from Mar 27 2016 to Dec 31 2016 Effective Period Tickets must be issued on before 18 FEB 16 Effective Period Ticket must be issued on before 29...

Replace #N/A with blanks in vlookup

I'm using a loop to update the values in one workbook from the values in another workbook using the following code: Option Explicit Sub DateFinder() Dim rw As Long, x As Range Dim...

How to extract date from string using Python 3.x

I require to find out the phone bill due date from SMS using Python 3.4 I have used dateutil.parser and datefinder but with no success as per my use-case. Example: sms_text = "Your phone bill for...

extract 'date-related' string from a sentence-python

I am new to python, and want to find all 'date-related' words in a sentence, such as date, Monday, Tuesday, last week, next week, tomorrow, yesterday, today, etc. For example: input: 'Yesterday I...

Extract Different Date Structures with Text Using RE- Python

I have strings that have dates in different formats. For example, sample_str_1 = 'this amendment of lease, made and entered as of the 10th day of august, 2016, by and between john doe and jane...

Python Regex - using re.sub to clean up a string

I am having some problems using regex sub to remove numbers from strings. Input strings can look like: "The Term' means 125 years commencing on and including 01 October 2015." "125 years...

replacing Date in String with some text in python?

I have text like input_string = " - 01 APRIL 2018 - ING000038985695286069" i want to replace date in the string with text like DD or DATE output_string = "- DD/DATE - ING000038985695286069" So...

Named Entity Recognition in NLP using Python

I have lots of CVs text documents. In that, there is different formats of dates are available e.g. Birthdate - 12-12-1995, Experience-year - 2000 PRESENT or 1995-2005 or 5 years of experience or...

OverflowError when trying to convert generators to lists

I'm trying to extract dates from txt files using datefinder.find_dates which returns a generator object. Everything works fine until I try to convert the generator to list, when i get the...

TypeError: coercing to Unicode: need string or buffer datetime datetime found

This is my script to save the output into a csv file: import os, csv, datefinder, datetime os.chdir('C:\Users\dul\Desktop\Article') with open("test2.txt", 'r') as file1: text1 =...

How to extract or validate date format from a text using python?

I'm trying to execute this code: import datefinder string_with_dates = 'The stock has a 04/30/2009 great record of positive Sept 1st, 2005 earnings surprises, having beaten the trade Consensus...

UnboundLocalError: local variable 'strdate' referenced before assignment

When I tried this codes with 3-4 files as a test, it worked fine. But when I ran with 3,000+ files, the error message popped up saying File "C:\Users\dul\Dropbox\Article\ap_final.py", line 51, in...

Python) IndexError: list index out of range

When I ran this code, the error message says File "C:\Users\dul\Dropbox\Article\ap_final.py", line 37, in extract_data date=matches[1] IndexError: list index out of range However, I am sure...

Extract timestamp from a given string using python

I tried multiple packages to extract timestamp from a given string, but no package gives correct results. I did use dateutils, datefinder, parsedatetime, etc. for this task. They extract some...

Slots are not resetting after custom action is met

I've created a custom action which is triggered with the default fallback intent and resets the slots and restarts the flow. However, it is not working as expected. Neither the slots are reset and...

How to correctly extract various Date formats from Text in Python

I have to extract all the available dates from a PDF and then check among the dates which is Contract Date. For that first I want to extract all the Dates in the Text that i have extracted from...

python datefinder's find_dates method is not returning the expected result

I have a column in Pandas dataframe 'Comment Text' which contains the dates in this format(showing here, only first observation): 7/09/2018 11:59:37 AM;12:01:33 PM;00:01:56 Adding Dataframe...

How do I turn datefinder output into a list?

So this has been answered here: https://stackoverflow.com/questions/57760093/making-output-of-datefinder-into-list/57760276#57760276 Unfortunately my rep is too low so I can't comment to get...

How do I extract a DateTimeIndex for use in a new column?

I've extracted the dates from filenames in a set of Excel files into a list of DateTimeIndex objects. I now need to write the extracted date from each to a new date column for the dataframes I've...

datefinder wont find dates when the string has ':' before date

datefinder module doesn't find dates when there is ':' before date. There is a similar question...

Importing Python Libraries to SQL Server

I'm trying to 'import datefinder' in my SQL Server Python script, but for some reason it doesn't work. Other libraries (for example Pandas) seem to work just fine. I've tried following script in...

How to extract multiple time from same string in Python?

I'm trying to extract time from single strings where in one string there will be texts other than only time. An example is s = 'Dates : 12/Jul/2019 12/Aug/2019, Loc : MEISHAN BRIDGE, Time : 06:00...

Error: UnknownTimezoneWarning: tzname IST identified but not understood

Error : UnknownTimezoneWarning: tzname IST identified but not understood. Pass `tzinfos` argument in order to correctly return a timezone-aware datetime. In a future version, this will raise an...

Package dependencies error during conda-build upload

I'm trying to upload pycaret package into anaconda, making it possible to install with conda install pycaret. This is issue 21 and I'm working on it. So, I followed those steps at Building conda...

Regular file download with Python scheduler and wget

I wrote a simple script which schedules the download of the file from web page once per every week with schedule module. Before downloading, it checks if the file was updated using BeautifulSoup....

Confusing day and month when parsing dates in Python

I want to parse date each time the same way. I wrote a code that detects date in string, but it parses the date differently. My date is 3rd of November 2020, and it mixes the days and...

IllegalMonthError in Python datefinder

I am trying to extract dates from email texts using datefinder python library. Below is a the code snippet of what I am trying to do. import datefinder #body has list of email...