def CTDataSQ (name):
name= cleanDF[["PatientstudyId2","RATER","CT_3D",name]]
name= name.loc[name['CT_3D'] == 1]
del name["CT_3D"]
name.to_excel(name, ".xlsx")
for y in Questions:
CTDataSQ(y)
I'm attempting to create a function that creates excel spreadsheet outputs with names derived from a list. I get the following error.
UFuncTypeError: ufunc 'add' did not contain a loop with signature matching types (dtype('<U32'), dtype('<U32')) -> dtype('<U32')
Looked online and cannot seem to solve. Any help would be appreciated.
Thanks