Hi there,
I am defining a data frame at Python caller on __init__ function like below:
class FeatureProcessor(object):
def __init__(self):
df2 = pandas.DataFrame(columns= ='INCIDENT_DATE',INCIDENT_MINS','INCIDENT_VALUE'])
later in the program at input function I am storing feature attribute value in data frame something like that:
def input(self,feature):
self.pyoutput(feature)
df2f'INCIDENT_DATE'] = feature.getAttribute('DATE')
df2f'INCIDENT_MINS'] = feature.getAttribute('MINS')
df2f'INCIDENT_VALUE'] = feature.getAttribute('VALUE_LOST')
However, when I ran the Python caller block, it throws an error message that df2 is not defined at the input block. Could anyone point out where am I making the mistake?