## How to compare two rows in a csv file?

I’ve a data.csv file which looks as follows.

-1.95e+01   -2.30e-01   -2.56e-01   4.44e+01 -1.95e+01   -2.30e-01   -7.68e-01   4.48e+01 -2.00e+01   -2.30e-01   -2.56e-01   3.41e+01 -2.00e+01   -2.30e-01   -7.69e-01   3.46e+01 -2.10e+01   -9.92e+00   1.00e+01    9.66e+01 -2.10e+01   -9.92e+00   2.30e+00    4.29e+01 

I’d like to have a result.csv file such that if the value in the first column is the same, grab all the data in the first four columns (there are 4 columns) and save it in result.csv file. Then the next equal values and save it in the next four columns. For example my result.csv should look like

-1.95e+01 -2.30e-01 -2.56e-01 4.44e+01  -2.00e+01 -2.30e-01 -2.56e01 3.41e+01 -2.10e+01 -9.92e+00 1.00e+01 9.66e+01 -1.95e+01 -2.30e-01 -7.68e-01 4.48e+01  -2.00e+01 -2.30e-01 -7.69e-01 3.46e+01 -2.10e+01 -9.92e+00 2.30e+00 4.29e+01 

My very basic attempt is as follows:

with open('data.csv', 'r') as f:     csv_reader = csv.reader(f, delimiter='\t')     for col in csv_reader:               i = 0         if col[0] == "Next value of the same column": 'don't know how to fix             #Grab all the values which have same value in the first column         else:             #Grab next values which have same value in the first column         i += 1   

## Compare content of 2 files using diff – no such file or directory problem

May I know how can I compare content of two files? I tried these codes below but I get “sh: diff: No such file or directory” message.

plink.exe 10.3.0.121 -l admin -pw abc123 -batch sh diff -s “/share/MD0_DATA/BackupData/test1.txt” “/share/MD0_DATA/BackupData/test2.txt”

plink.exe 10.3.0.121 -l admin -pw abc123 -batch sh diff -s /share/MD0_DATA/BackupData/test1.txt /share/MD0_DATA/BackupData/test2.txt

## SharePoint 2013 -Compare values in list to see if all column values match- dashboard

I want to create a dashboard indicating when all items in a list are equal to “Yes”. For testing I am innerHtmling Done/Not Done. The logic seems to work , but I am afraid the code is testing the list as a whole and not the individual items. I am using choice columns.

Am I missing a loop?

$(document).ready(function() { arrayIn_OutItems();  }); function arrayIn_OutItems(){ var siteUrl = “https:xxx/_api/web/lists/GetByTitle(‘listName’)/items?$ select=”Title,Office,HR,Accounting; var array = []