Timeline for Extract the last row in a dataframe with a timestamp before some given time
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 7, 2022 at 4:10 | comment | added | jaried | I resubmitted a question, can you please take a look at it? codereview.stackexchange.com/questions/277147 | |
Jun 6, 2022 at 12:52 | vote | accept | jaried | ||
Jun 6, 2022 at 12:52 | comment | added | jaried |
Thanks for your answer. It's my Fault,get_result_df in Suggested code takes only 5ms, It's very fast. The real data time is not linear, only the specified time period. I'll resubmit a question.
|
|
Jun 6, 2022 at 12:20 | comment | added | Reinderien | @jaried It's possible to write a faster algorithm, but that depends on what corners you can cut in the input data based on what they are in real life. You haven't spoken to this in your question. Will the real data always have a datetime index that's linearly uniform? And have you measured both the bisection and interpolation implementations? | |
Jun 6, 2022 at 10:15 | vote | accept | jaried | ||
Jun 6, 2022 at 10:42 | |||||
Jun 3, 2022 at 12:34 | history | edited | Reinderien | CC BY-SA 4.0 |
deleted 8 characters in body
|
Jun 3, 2022 at 11:35 | history | edited | Reinderien | CC BY-SA 4.0 |
added 2899 characters in body
|
Jun 3, 2022 at 2:09 | history | edited | Reinderien | CC BY-SA 4.0 |
edited body
|
Jun 3, 2022 at 1:22 | history | answered | Reinderien | CC BY-SA 4.0 |