nested loop through a very large dataset, extracting the 3 values through long calculations and saving them to a csv file with 3 columns, n-rows (np.savetxt statement)
I would like to reshape the output of a.extend((value1[index1], value2[index2], value3[index3])) to three columns and n rows. Currently "a" puts each value on a row. Any idea?
Hi, i am reading a file with polar coordinates and converting it to (Long, Lat). I want to loop over (range, azimuth) and save to csv only if a certain variable is above a certain limit. Can anyone guide me?
1)convert and manupliate files to csv, 2) add a new column to each csv (calculation from 3rd column), 4) re-arrange the columns from (lat, lon, water) to (lon, lat, water, calc)
now, i want to read the csvs (batch) as pandas to add the header and perform calculations and then change switch the places of (lat, lon) to (lon, lat). Can i do that within the last WITH OPEN?