{"id":24608,"date":"2023-12-22T01:27:03","date_gmt":"2023-12-22T00:27:03","guid":{"rendered":"https:\/\/www.graviton.at\/letterswaplibrary\/help-pulling-multiple-csv-files-with-timestamped-data-and-multiple-participants-into-one-file\/"},"modified":"2023-12-22T01:27:03","modified_gmt":"2023-12-22T00:27:03","slug":"help-pulling-multiple-csv-files-with-timestamped-data-and-multiple-participants-into-one-file","status":"publish","type":"post","link":"https:\/\/www.graviton.at\/letterswaplibrary\/help-pulling-multiple-csv-files-with-timestamped-data-and-multiple-participants-into-one-file\/","title":{"rendered":"Help Pulling Multiple .csv Files With Timestamped Data And Multiple Participants Into One File."},"content":{"rendered":"<p><!-- SC_OFF --><\/p>\n<div class=\"md\">\n<p>I have 11 .csv files containing data which has information about multiple participants in a study. All of the tables have a &#8216;timestamp&#8217; column, some have &#8216;start-time&#8217; and &#8216;end-time&#8217; columns too. I then have 5 .csv files with data that is *not* timestamped &#8211; it contains some background\/onboarding information collected at the beginning of the study.<\/p>\n<p>I want to use this data to train a machine learning model.<\/p>\n<p>I need to pull all of this information into one .csv file. I&#8217;m not sure how exactly to go about doing this. I&#8217;ve thought about matching timestamps for each table, and adding the relevant columns onto the row with the same timestamp, and just having the non-timestamped information in each row for that participant ID. <\/p>\n<p>i.e., it would look something like this:<\/p>\n<p>[ID] [timestamp] [feature1] [added feature 1] [added feature 2] <\/p>\n<p>Then, all of the timestamps associated with each person&#8217;s id would have its own row, but some of the features would be empty\/null values. <\/p>\n<p>Would it make sense to do this? What are some methods I could use to achieve this?<\/p>\n<\/div>\n<p><!-- SC_ON -->   submitted by   <a href=\"https:\/\/www.reddit.com\/user\/an-diabhal\"> \/u\/an-diabhal <\/a> <br \/> <span><a href=\"https:\/\/www.reddit.com\/r\/datasets\/comments\/18nr25i\/help_pulling_multiple_csv_files_with_timestamped\/\">[link]<\/a><\/span>   <span><a href=\"https:\/\/www.reddit.com\/r\/datasets\/comments\/18nr25i\/help_pulling_multiple_csv_files_with_timestamped\/\">[comments]<\/a><\/span><\/p><div class='watch-action'><div class='watch-position align-right'><div class='action-like'><a class='lbg-style1 like-24608 jlk' href='javascript:void(0)' data-task='like' data-post_id='24608' data-nonce='65e0e39b87' rel='nofollow'><img class='wti-pixel' src='https:\/\/www.graviton.at\/letterswaplibrary\/wp-content\/plugins\/wti-like-post\/images\/pixel.gif' title='Like' \/><span class='lc-24608 lc'>0<\/span><\/a><\/div><\/div> <div class='status-24608 status align-right'><\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>I have 11 .csv files containing data which has information about multiple participants in a study. All&#8230;<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[85],"tags":[],"class_list":["post-24608","post","type-post","status-publish","format-standard","hentry","category-datatards","wpcat-85-id"],"_links":{"self":[{"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/posts\/24608","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/comments?post=24608"}],"version-history":[{"count":0,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/posts\/24608\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/media?parent=24608"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/categories?post=24608"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/tags?post=24608"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}