F
F
fufufuf2021-02-09 17:39:20
Python
fufufuf, 2021-02-09 17:39:20

How to add data for the last 10 minutes?

Good afternoon, the question is. How to add data for the last 10 minutes?

Now the data is stored in this form:

Price : 2000 Time 090220211730 ( 02/09/2021 17:30)
Price : 2500 Time 090220211731 (02/09/2021 17:31)

Time data is taken using datetime (Python)

How to make every 10 minutes did the price data add up?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
Wispik, 2021-02-09
@Wispik

if you have data for every minute, then take the last 10 records and add them up. What exactly is the difficulty?

Z
zexer, 2021-02-09
@zexer

If you need to add something, and even more so it is something tied to time, it’s better to convert it all into a pandas DataFrame structure, after which it will be much easier to use pandas methods.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question