so this worked perfectly with python 3.9 but I had to downgrade to 3.8 and now this line of code no longer works. I dont understand why it thinks its a float.
df