I am trying to take a bunch of text files and export them to a workspace geodatabase and then take the new tables and do a summary stats calculation and export that out as a new table that is whatever the loss table is plus summ at the end. Script is below. What exactly is the best way to do this with a variable? Any help would be greatly appreciated.
for file in arcpy.ListFiles("*.txt"):
loss_table = os.path.join(output_workspace, str(file[:-4]))
summary = os.path.join(output_workspace, str(loss_table + "summ"))
arcpy.Statistics_analysis(loss_table, summary, stats, "CensusBlock")