import csv import os import pandas as pd #This nested for loop iterates through my excel files and then appends them to my list. feature_classes =  for dirpath, dirnames, datatypes in arcpy.da.Walk(workspace, datatype="Table"): for datatype in datatypes: feature_classes.append(os.path.join(dirpath, filename)) #This loop is intended to delete one column in each excel file. Currently It only deletes the column for the first file. for fc in feature_classes: arcpy.management.DeleteField(os.path.join(dirpath, filename),"Delete_")
This code successfully deletes the field I want, but only from the first Excel file in the directory I am looping for. I think a nested for loop may be required but wanted to see what other simpler solutions may exist.