Nov-14-2022, 05:33 PM
(This post was last modified: Nov-14-2022, 05:34 PM by SchroedingersLion.)
Greetings,
I have a 2D numpy array
Is there a simple way to do this?
This is what I currently have. It prints the array without rounding.
I have a 2D numpy array
ARRstoring a bunch of floats. I want to print it row by row to a .csv file, but rounded to 3 significant digits.
Is there a simple way to do this?
This is what I currently have. It prints the array without rounding.
with open('./results', 'w') as f:
writer = csv.writer(f, delimiter=" ")
for row in ARR:
writer.writerow(row) Cheers!
