if stationary (nasdaq_minute_data[col])=='notstationary':
print('%s is not stationary.Drapping it.' %col)
x.drop(col=columns,axis=1,inplace=True)
else:
HOW CAN I RESOLVE THESE PROBLEM?
print ('%s is stationary.'%col)
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
Input In [67], in <cell line: 1>()
----> 1 if stationary (nasdaq_minute_data[col])=='notstationary':
2 print('%s is not stationary.Drapping it.' %col)
3 x.drop(col=columns,axis=1,inplace=True)
NameError: name 'col' is not defined
Hi Irene,
It seems that you have not defined the variable 'col' before using the 'if else' condition. Therefore, first, define this variable and then use your code.
I hope it resolves your issue.
Please let us know if you face any other difficulties with the complete code attached.
Thanks