The method name is all lowercase: tolist.
tolist
So you need to change the offending line to:
x.append(df.values.tolist())