You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a FeatureSet that I would like to save to CSV. One approach I've tried is to use the FeatureSet save() method. Unfortunately, attempting to save as a CSV produces a >> error. (Saving as a JSON file works just fine.)
Works (JSON)
In [14]: feature_set.save('data_folder', 'my_data.json')
Out [14]: 'data_folder/my_data.json'
Does not work (CSV)
In [15]: feature_set.save('data_folder', 'my_data.csv')
Out [15]:
---------------------------------------------------------------------------TypeErrorTraceback (mostrecentcalllast)
<timedeval>in<module>()
/Users/markegge/anaconda3/envs/arcgis/lib/python3.6/site-packages/arcgis/features/feature.pyinsave(self, save_location, out_name)
690# write the headers to the csv691forfieldinself.fields:
-->692fields.append(field['name'])
693csv_writer.writerow(fields)
694TypeError: stringindicesmustbeintegers
Using Python 3.6, ArcGIS API for Python version 1.2.0.
The text was updated successfully, but these errors were encountered:
I have a FeatureSet that I would like to save to CSV. One approach I've tried is to use the FeatureSet save() method. Unfortunately, attempting to save as a CSV produces a >> error. (Saving as a JSON file works just fine.)
Works (JSON)
Does not work (CSV)
Using Python 3.6, ArcGIS API for Python version 1.2.0.
The text was updated successfully, but these errors were encountered: