I am getting this error “local variable 'col' referenced before assignment” when running the following code:

后端 未结 0 1269
后悔当初
后悔当初 2021-01-18 12:02
def log_hist(data):
    data = pd.DataFrame([])
    for col in data:
        data_log = np.log(data[col])
    return data[col].hist()




---------------------------         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题