There are several Python packages that implement the datetime.tzinfo interface, including pytz and dateutil. If someone hands me a timezone object and ...
There are several Python packages that implement the datetime.tzinfo interface, including pytz and dateutil. If someone hands me a timezone object and ...
I am trying to extract dates from text using dateutil library (Python 3.7) I want to extract all dates from text using code below. import dateutil.p ...
I have a CSV file with some 30 years worth of daily close prices for the S&P 500 (SPX) stock market index, and I read it as Dataframe Series ...
I have a huge number of excel files i need to extract data from, hopefully into a pandas df. The file contains a number of columns, one of which is ti ...
I try reading a CSV file using pandas and get a warning I do not understand: I do nothing special, just pd.read_csv with parse_dates=True. I see no ...
I want to create my own date parser. I like parser.parse() function but if I have: Then the results are: I want to always first try to parse the ...
I am unable to get dateutil installed in my Python code. I had date-util installed (Python version is 3.7.3) I cannot uninstall them (to reinsta ...
I'm trying to create some date recurrence rules. Based on the issues with dateutil noted here and here I am trying to use relativedelta rather than rr ...
I've 2 strings of datetime, I need to subtract those to get duration but when subtracted for hour section it only contain 1 digit eg: 1:30, 2:30 So, m ...
I'm trying to understand how the zoneinfo module figures out daylight savings time transitions in the distant future while it seems that dateutil and ...
I am trying to extract date from a DF column containing strings and store in another column. The above code extracts: 1976-01-24 00:00:00 I would ...
I'm trying to find dates in a string. This is what I'm doing. It works on some:- however, it returns incorrect results for others. How can I ...
Is there any way that I can summarise the following code? The codes after each if-else condition are very similar. The only difference is the argument ...
enter image description here The code I wrote above works fine except I want the numerical day (%d) of the month to stay unchanged (30th) for all the ...
I am using rrule from python-dateutil 2.8.2 in python 3.10 to generate datetimes. I can't figure out how to create a rrule that creates outputs for o ...
There's something wrong with adding years: from datetime import datetime from dateutil.relativedelta import relativedelta if __name__ == '__main__': ...
I love dateutil.parser and use it often so I don't have to worry about inconsistent datetime formats and in most cases it has been very reliable for m ...
ok I am getting the attribute Error:enter with statement. trying to have python check for next Mondays date and if there is that date move forward the ...
Is it possible to create a rrule that runs every 30 minutes but starts and ends at the middle of an hour? If rrule would accept non-integer parameters ...
I am trying to parse a UTC timestamp that I pulled from a dict key and then subtract the results from the current time in UTC to compare them. Howeve ...