python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How do you update variable in Class each time?
I am trying to code a Class, which upon calling, for example: print(TimeNow.time_now) would print current time (but it's not realtime), as in, each time I call it, it doesn't return updated value.
If ...
Cassano
Votes: 0
Answers: 2
SQL query duration as consecutive timestamps difference, grouped by day
Basically, I have a table like this
id
timestamp
state
minutes
1
7/12/2021, 17:38
off
14.54
1
7/12/2021, 17:53
running
8.39
1
7/12/2021, 18:01
off
8.12
1
9/12/2021, 00:04
running
big val...
Kunis
Votes: 0
Answers: 1
Minus values from the same column
I have a table with 2 columns. one contains the user's ID and the other contains the datetime whenever that user logged into the application.
I want to create a custom computation where the datetime v...
Khiêm Cao
Votes: 0
Answers: 1
Python: take unique dates in dataframe
I have a data frame that looks like this:
price
Date
2022-01-01 19:20:00 100
2022-01-01 19:27:00 100
2022-01-02 19:31:00 102
I want the dataframe to only have uniqu...
MathMan 99
Votes: 0
Answers: 2