... The problem is
"index"
so whenever you have a dataset with the column name "index" it will throw an IndexError...
You can just write it with a capital letter
"Index"
and everything is fine again... -.-