mattm401 / collabortweet

Collaborative web framework for analyzing text (e.g., tweets) using pairwise comparisons.
0 stars 1 forks source link

Python Script 1: Merge Records with Output CSV #18

Closed mattm401 closed 7 years ago

mattm401 commented 7 years ago

We need to write a script that can look up a video ID and find it's label in the database. The function should read in one of our CSV files, figure out what header rows exists, add a header row ("Label"), and then export all the data to a new CSV file. The only difference between the two files should be that the ("Label") row has been added to the right of the other columns. If a video ID cannot be found, write -1 to that entry in the "Label" field.