Skip to main content
Filter by
Sorted by
Tagged with
3 votes
0 answers
142 views

I have a set of data that I am pulling from an Excel CSV. The column I am using has the timestamps in ISO 8601 format with fractional seconds (YYYY-MM-DDTHH:MM:SS.SSZ) I have tried using dateutil, ...
user31262016's user avatar
0 votes
1 answer
48 views

I have a dataframe with a column of the dateutil.relativedelta type. When I try grouping by this column, I get the error TypeError: '<' not supported between instances of 'relativedelta' and '...
user5029763's user avatar
  • 1,935
-1 votes
1 answer
67 views

I am using the dateutil library with its 'fuzzy' ability to parse dates out of strings. It seemed to be actually quite good at it but on careful inspection it was jumping back and forth between ...
cardamom's user avatar
  • 7,511
1 vote
1 answer
207 views

I'm facing a tricky problem and couldn't find a solution online. I hope someone here can help me figure out a "clean" way to do this. This is my current function to retrieve all expired ...
zdeneklapes's user avatar
1 vote
1 answer
50 views

Trying this code snippet:- from dateutil import parser as date_parser print(date_parser.parse("Fri Dec 01 2023 00:00:00 GMT 0530 (India Standard Time)")) Getting this error:- raise ...
GK21's user avatar
  • 59
0 votes
0 answers
248 views

I'm writing a calendar application, and I have been trying to track down why canceled / rescheduled calendar entries keep appearing on my calendar. I traced the problem to a time zone issue with ...
David Stein's user avatar
1 vote
1 answer
98 views

Using dateutil I created function which check if data from csv is date and if not remove it from dataframe, but I have problem with speed, similar checking for string or int takes 1-2 seconds for ...
Southsun1's user avatar
1 vote
2 answers
926 views

I am having trouble understanding the differences between the relativedelta() function from the dateutil module and the DateOffset() function from Pandas. To me their syntax and outcomes are the same. ...
PingPong's user avatar
  • 1,037
1 vote
2 answers
350 views

I'm working on a block of Python code that is meant to test inputs to determine whether they're numeric, timestamps, free text, etc. To detect dates, it uses the dateutil parser, then checks if the ...
ThrawnCA's user avatar
  • 1,081
0 votes
0 answers
126 views

I installed pandas usng pipenv install pandas command when i run my script getting errors as ImportError: Unable to import required dependencies: dateutil: No module named 'dateutil' and checked ...
akhil viswam's user avatar
1 vote
1 answer
91 views

from dateutil.parser import parse def convert_to_ddmmyy(date_string): try: date = parse(date_string) formatted_date = date.strftime("%d%m%y") return ...
Saurabh Deshmukh's user avatar
0 votes
1 answer
83 views

I have this simple function and test here: def convert_to_current_time_zone(server_time, test_timezone = None): """ Converts a time from server time to the users time zone, taking ...
joe's user avatar
  • 33
1 vote
1 answer
1k views

I want to shift the date index of my daily data forward by one month. This is in order to calculate a rolling month-on-month change on the daily data by calculating on two dataframes - the existing ...
zact8's user avatar
  • 15
1 vote
1 answer
1k views

ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: 'C:\Users\path\AppData\Roaming\Python\Python311\site-packages\dateutil\zoneinfo\dateutil-zoneinfo.tar.gz' Check the ...
Vishkorra's user avatar
1 vote
2 answers
217 views

There are several Python packages that implement the datetime.tzinfo interface, including pytz and dateutil. If someone hands me a timezone object and wants me to apply it to a datetime, the ...
Ken Williams's user avatar
  • 24.3k
2 votes
2 answers
1k views

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 with Dates set as Index. Dataframe: Date Open High Low ...
maikoh's user avatar
  • 25
2 votes
1 answer
145 views

I try reading a CSV file using pandas and get a warning I do not understand: Lib\site-packages\dateutil\parser\_parser.py:1207: UnknownTimezoneWarning: tzname B identified but not understood. Pass `...
Michel de Ruiter's user avatar
0 votes
2 answers
7k views

I am unable to get dateutil installed in my Python code. from dateutil import tz ImportError: No module named dateutil I had date-util installed (Python version is 3.7.3) > pip3 install ...
SEU's user avatar
  • 1,400
2 votes
2 answers
321 views

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, my question is can we get subtracted datetime or ...
jeevu94's user avatar
  • 738
0 votes
2 answers
2k views

I am trying to extract date from a DF column containing strings and store in another column. from dateutil.parser import parse extract = parse("January 24, 1976", fuzzy_with_tokens=True) ...
Krishna's user avatar
  • 167
0 votes
1 answer
6k views

I have the following error on a code sample: raise ParserError("Unknown string format: %s", timestr) dateutil.parser._parser.ParserError: Unknown string format: Fall Semester 2018 Printed: ...
ezpz4pc's user avatar
  • 69
3 votes
1 answer
2k views

I'm trying to find dates in a string. This is what I'm doing. def _is_date(string, fuzzy=False): try: return parse(string, fuzzy=fuzzy) except ValueError: return False It ...
Praful Bagai's user avatar
  • 17.5k
-1 votes
1 answer
710 views

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 months bar February (28th). The fact that the day ...
hareko's user avatar
  • 5
0 votes
1 answer
755 views

There's something wrong with adding years: from datetime import datetime from dateutil.relativedelta import relativedelta if __name__ == '__main__': date = datetime.today().date() print(date) ...
Maxim Blumental's user avatar
0 votes
0 answers
181 views

Trying to parse string dates to datetime.date that might be in the format DD/MM/YY or MM/DD/YY. The only info I have is the pytz.tz to help me figure out the format of the string date. I am using ...
kikoololmdr's user avatar

1
2 3 4 5
9