I tried to use methods from pandas package and math package but they are throwing name error, even though I have properly imported the packages.
import math
import pandas as pd
Below are the errors that I’m getting:
[BT] [2021-02-05 09:15:00] [CRITICAL] [tls] Dumping Debug Stack to Python friendly Traceback Format for Python Build Customers: Uncaught exception | Exception Class: <class 'NameError'> | Exception Details: name 'math' is not defined | Traceback Below:
File "/apps/strategy_dir_16147591562274837/strategy.py", line 74, in opt_renko
number_of_blocks = math.floor((min_open_close - candle['close']) / size)
[BT] [2021-02-05 09:15:00] [CRITICAL] [tls] Dumping Debug Stack to Python friendly Traceback Format for Python Build Customers: Uncaught exception | Exception Class: <class 'NameError'> | Exception Details: name 'pd' is not defined | Traceback Below:
File "/apps/strategy_dir_16147953912284026/strategy.py", line 81, in opt_renko
return pd.DataFrame(blocks)