dimanche 11 novembre 2018

NumPy writing windings instead of numbers to CSV in ArcMap

I'm using this code:

import arcpy
import numpy as np

f = open("F:\INTRO_PY\LAB_7\lab_7.csv","w")
array = np.random.rand(1000,1000)

f.write(array)
f.close

in order to create a 1000x1000 random array in arcpy.

This is what I get when I open the csv: CSV

I have absolutely no idea why it's doing this, and I'm at my wit's end. Any advice would be really, really appreciated!




Aucun commentaire:

Enregistrer un commentaire