Skip to main content
Filter by
Sorted by
Tagged with
-2 votes
0 answers
67 views

I am trying to get a year, and time in UTC format for a particular time I am able to print the time in the desired format but it is always printing wrong year , not sure if it prints the correct time ...
Kapil's user avatar
  • 325
0 votes
1 answer
60 views

Hi I am new to learning data science and was just trying to play with a data set: When I check the dtype of a column it shows as object. I want to convert it to a string so I can strip the components ...
Hamza Rehan's user avatar
2 votes
4 answers
189 views

I have a dataframe where each row represents a detection of a fish. The fish can be either, Brown Trout (Fish.ID starts with TB_) or Salmon/Parr (Fish.ID starts with TA_). I want to create a new ...
Kristen Cyr's user avatar
1 vote
1 answer
37 views

I have a list of records where each item has a date field. I'm trying to filter the records based on a given date: from datetime import datetime records = [ {"name": "John", &...
Thosba Sarathi.S's user avatar
4 votes
1 answer
128 views

I encountered this behaviour and I figured I would ask the correct way to go about it. Here is a toy example: pre_timechange = datetime.datetime(2025, 11, 2, 1, 59, 9, tzinfo=zoneinfo.ZoneInfo(key='...
SomeGuy's user avatar
  • 61
-2 votes
1 answer
60 views

Is it possible to have the units argument for the timedelta function be defined by a variable? To elaborate, is this possible? Time_Unit = "days" Time_Increment = 1 Time2 = Time1 + ...
Jon S's user avatar
  • 55
4 votes
2 answers
108 views

I'm working on a Django application in which I need to calculate the difference between timestamps stored in the DB. This week I run into some problems related to DST. In particular in the following ...
Luca Zanetti's user avatar
0 votes
1 answer
116 views

My data decoded from a radio receiver is stored in tables Flights and Aircraft with a common field AircraftID to enable a JOIN. There are fields for when the radio signal starts and ends (StartTime ...
MikeH's user avatar
  • 3
0 votes
1 answer
104 views

I'm new to coding, and I'm trying to combine the data from two weather stations into one new dataframe sorted by Datetime. I want this new dataframe to contain the average values of the two original ...
Maurice Verest's user avatar
3 votes
1 answer
136 views

Given this sample: final var ARABIC_GREGORIAN_DATE_FORMATTER = DateTimeFormatter.ofPattern("EEEE dd\\MM\\yyyy G").localizedBy(Locale.forLanguageTag("ar")); final var ...
Eng.Fouad's user avatar
  • 118k
3 votes
3 answers
157 views

I have a dataframe using this format import polars as pl df = pl.from_repr(""" ┌─────┬────────────┬────────────┬──────────┐ │ ID ┆ DATE_PREV ┆ DATE ┆ REV_DIFF │ │ --- ┆ --- ...
Philipp's user avatar
  • 65
-2 votes
1 answer
145 views

I have some data with date time in UTC. My local time is usually 5 or 6 hours behind depending on standard or daylight time. I would like to print the local time. Is there an easy way to do that in ...
tman's user avatar
  • 439
0 votes
2 answers
84 views

I would like to use the Python standard library datetime to assign to a variable the current date, in UTC and having it of type datetime.datetime. i.e. datetime.datetime(2025, 9, 23, 0, 0, tzinfo=...
SeF's user avatar
  • 4,299
2 votes
1 answer
84 views

I'm using Angular version 20. Month and year selection are missing. I have tried more methods, however I am still facing issues. Imports: CommonModule, FormsModule, ReactiveFormsModule, ...
user6725573's user avatar
2 votes
1 answer
170 views

I am trying to import very large csv files into parquet files using polars. I stream data, use lazy dataframes and sinks. No problem until... ...sorting the dataframe on a column and removing ...
Matt's user avatar
  • 7,316
1 vote
0 answers
30 views

I’m using Laravel 12 and I want to run a scheduled command every day at 07:00 UK (Europe/London) time, but my server is configured with UTC timezone. In my bootstrap/app.php I have and its working: $...
Ashwini Singh's user avatar
4 votes
1 answer
413 views

I am building an application using Python 3.13.5 and the native sqlite3 library. To correctly handle datetime.date objects and avoid the new DeprecationWarning, I am trying to implement the officially ...
João Vítor Araújo's user avatar
7 votes
2 answers
177 views

I'm using the boost mysql library in a project. I need to use boost::mysql::datetime (datetime) to represent timestamps. A datetime value can be constructed from a boost::mysql::datetime::time_point. ...
pacmaninbw's user avatar
2 votes
1 answer
138 views

I have a dataframe with some "NaT" values in a datetime column. What does that mean? project status completed 0 windows done 2025-08-20 1 doors done 2025-08-21 2 hvac ...
wjandrea's user avatar
  • 33.8k
2 votes
0 answers
77 views

I have a spring boot webapp, which uses thymeleaf for html templating and as templating engine for emails sent by this webapp, too. In my email I want to use a LocalDateTime, which does not work. ...
dietzi96's user avatar
  • 133
4 votes
1 answer
228 views

I'm working on a Python script that checks whether it's currently dark outside based on my location (Barishal, Bangladesh). I use the Sunrise-Sunset API to get sunrise and sunset times, and then ...
Mdjayed Gazi's user avatar
1 vote
0 answers
350 views

Issue I have data in form of a list of dicts (see MRE below). To make everything type strict I would always like to pass in the expected schema (dtypes) when I read in this data. This option is given ...
SysRIP's user avatar
  • 491
0 votes
2 answers
81 views

I have this GUI with the button "get dates for last week". I programmed this in 2024, using datetime objects and the isocalendar() method - and the button worked like a charm, returning the ...
Red's user avatar
  • 385
1 vote
1 answer
125 views

I am trying to compute business days using Numpy. I how ever found an inconsistency. import numpy as np # Count from 1st Jan 2023 to 31st Jan 2023 print("Jan: {0}".format(np.busday_count('...
M4X_'s user avatar
  • 583
3 votes
1 answer
97 views

My original data csv file columns looks like this: | Millisec_diff | Value1 | Value2 | | ------------- | ------ | ------ | | 0 | 100 | 200 | | 0.005 | 101 | 20.1 | | 0....
SheCodes's user avatar
  • 637

1
2 3 4 5
1430