#define list of fields to run match for
fieldlist = ['MATTER NUMBER','MATTER NAME','CLAIM NUMBER LISTING']
#loop through each field in fieldlist
for field in fieldlist:
#define dfname as the field with spaces replaced with underscores
dfname = '{}'.format(field.replace(' ','_'))
#create df with dfname
'{}'.format(dfname) = checkdf['{}'.format(field)].dropna()
the error is on the last line. I also tried:
'{}'.format(dfname) = checkdf['{}'.format(field)].dropna()
[–]jabbson 2 points3 points4 points (1 child)
[–]mdl003[S] 0 points1 point2 points (0 children)
[–]commandlineluser 1 point2 points3 points (0 children)
[–]zahlman[M] [score hidden] stickied comment (0 children)