list = []
for df in lp:
list.append(list(df.loc[985191]))
list(list of list)
T = pd.DataFrame(list)
Hi I have this code to python
but when I returned, shows me an error
IndentationError: unindent does not match any outer indentation level
what can be the error?
You indented this line list.append(list(df.loc[985191]))
too far in. Try this.
list = []
for df in lp:
list.append(list(df.loc[985191]))
list(list of list)
T = pd.DataFrame(list)