python 中的这个错误是什么意思?

What does mean this error in python?

list = []
for df in lp:
           list.append(list(df.loc[985191]))
        list(list of list)
T = pd.DataFrame(list)

您好,我有此代码 python 但是当我返回时,显示错误

IndentationError: unindent does not match any outer indentation level

可能是什么错误?

您将此行缩进 list.append(list(df.loc[985191])) 太远了。试试这个。

 list = []
    for df in lp:
            list.append(list(df.loc[985191]))
            list(list of list)
    T = pd.DataFrame(list)