Quantcast
Channel: Question and Answer » arcpy
Viewing all articles
Browse latest Browse all 767

arcpy.da.SearchCursor, cannot read preceding zeros from csv

$
0
0

I’m using arcpy.da.SearchCursor to read a csv that has a column with preceding zeros, e.g.:

myCSVColumn
0124578
12598
04589
012568
...

When using the arcpy.da.SearchCursor it returns the value w/o the preceding zeros:

124578
12598
4589
12568

In addition, when using Table to Table method it returns the same result. Does anyone know a workaround for this besides opening the csv with python and parsing through it to get the values?


Viewing all articles
Browse latest Browse all 767

Trending Articles