Python Forum
What data structure I need
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What data structure I need
#1
Hi all,
I am new to python and I have learned using data frames. I have imported some data series and I was able to set the index to be time based. That makes me picking time durations easier. A few questions though more

a. How I can pick based on time stamps durations?(assume a start point in time X) Pick all rows that are within 1 second.

b. I want then to pick measurements based on a rolling window(previous start point+ a displacement).
I can do this easily in python with a for loop and having indexes increasing gradually. But is this the most efficient way to do that?

c. Now since I am splitting my initial data set to a X new datasets what will be the most efficient data structure to keep that new vectors? So for a long vector that is time indexed I will split it to Y new vectors (they will be overlapping as I described at point b). How I can store them? In other words can my function still return a data frame that makes calculations way easier?


I would like to thank you in advance for your reply.
Regards
Alex
Reply


Messages In This Thread
What data structure I need - by dervast - Apr-04-2019, 05:22 PM
RE: What data structure I need - by scidam - Apr-06-2019, 10:56 AM
RE: What data structure I need - by dervast - Apr-06-2019, 03:45 PM
RE: What data structure I need - by scidam - Apr-07-2019, 11:50 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Data structure question standenman 1 712 Jun-04-2023, 11:51 AM
Last Post: jefsummers
  Is there a better data structure than classes for a set of employes? Schlangenversteher 5 2,732 Feb-26-2020, 11:43 AM
Last Post: buran
  Data saving structure JosefFilosopio 0 2,171 May-04-2019, 10:48 AM
Last Post: JosefFilosopio
  Replacing values for specific columns in Panda data structure Padowan 1 14,741 Nov-27-2017, 08:21 PM
Last Post: Padowan

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020