Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8975355
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:51:29+00:00 2026-06-15T18:51:29+00:00

I need to analyse some data, stored in csv files. Each file represents the

  • 0

I need to analyse some data, stored in csv files. Each file represents the output of 3 devices, each with a different data sampling rate and a different time stamping convention. I would like to match timestamps from each csv file so that I can collate all the data from a single subject into a single file and use that to put into R.

The different timestamp conventions are below

Device 1 (Galvanic skin response):

04/12/2012 14:17

Device 2 (Heart rate monitor):

14:16:13

Device 3 (the actual task we are asking subjects to perform):

134941

Which I think means 13:49:41.

I know the dates each experiment was performed on, so it’s just the times I need to match against.

The data represent heart rate, galvanic skin response of subjects and the result of the user input to the tablet. I need to correlate their performance on the task with the changes in skin conductivity and heart rate – hence why I need to match up these times.

For example, there is a single file per person for skin response and a separate one heart rate but multiple files (with similar times) for the performance on our task depending on the various experimental conditions we used. I’d rather not do this matching task personally as there are ~ 300 of these files.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T18:51:30+00:00Added an answer on June 15, 2026 at 6:51 pm

    Use the time module’s strptime() method to parse the dates into time objects and strftime() to print out in specific formats (if needed).

    Example:

    import time
    
    device1 = '04/12/2012 14:17'
    device2 = '14:16:13'
    device3 = '134941'
    
    time1 = time.strptime(device1, '%m/%d/%Y %H:%M')
    time2 = time.strptime(device2, '%H:%M:%S')
    time3 = time.strptime(device3, '%H%M%S')
    

    Be aware that any parsed times that are only hours/minutes/seconds or any subset thereof will default to having a date of 1900-01-01. But if all you’re doing is pulling the time portions from the parsed struct_time objects, it won’t affect you. Otherwise, you’ll need to assign them the correct date when you parse the strings:

    time2 = time.strptime('04/12/2012 ' + device2, '%m/%d/%Y %H:%M:%S')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A coworker left some data files I want to analyze with Numpy. Each file
I need to analyse a binary data file containing raw data from a scientific
I need to performance analyse some real-time code on Windows. I can't use any
I need to analyse an input data from microphone on real time. For now,
I have some internet traffic data to analyze. I need to analyze only those
I need some help regarding the extraction of eventlog data under Windows 7. What
We're using Splunk (A tool to analyse machine data like log files) and have
I have some vectors of experimental data that I need to massage, for example:
I have some data that I need to analyze. The data is multilined and
I have been searching for some kind of tool to analyse log files that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.