Calling specific columns of attribute table using ArcPy?

Calling specific columns of attribute table using ArcPy?

We are searching data for your request:

Forums and discussions:
Manuals and reference books:
Data from registers:
Wait the end of the search in all databases.
Upon completion, a link will appear to access the found materials.

I'm trying to figure out how to spline specific columns of a shapefile attribute table, but my question is intermediate to this.

How do I select a range of columns, e.g. the 20th column to the right-most column, as fields to apply a for loop operation to?

My first thought was to try numpy, but I'm open to ideas. For now I'd just like to either print the names of the desired columns or specify the columns to be iterated in the for loop line.

import arcpy, numpy as np from import * fieldList = arcpy.ListFields(r"C:UsersafullharDesktopLab6Data For Lab on habitat modelingLayersstart_data10_km_Points.shp") for field in fieldList: print format([19,:])

that's nearly it, but the referencing of the field should be done on the field list, not the field name

fieldList = arcpy.ListFields(r"C:your.shp") for field in fieldList[19:]: print

Watch the video: Using field calculator and a python expression to combine fields in an attribute table in ArcGIS Pro


  1. Malin

    Bravo, this excellent phrase has to be precisely on purpose

  2. Brabar

    I'm sorry, I can't help you. But I am sure that you will find the right solution.

  3. Vudogis

    This was not enough yet.

  4. Zephaniah

    . Rarely. You can say this exception :)

  5. Vern

    Thanks. Very useful info

  6. Stefon

    I am sorry, that has interfered... At me a similar situation. Is ready to help.

  7. Treven

    In my opinion the subject is very interesting. I offer you to discuss it here or in PM.

Write a message