Home > Mobile >  Error: "Spyder was unable to retrieve the value of this variable" after updating pandas to
Error: "Spyder was unable to retrieve the value of this variable" after updating pandas to

Time:03-18

Not sure if this is a common problem with Spyder after manually updating a package from cmd but, in my case, I updated Pandas package to 1.4.0 with cmd, before that everything was working perfectly, but after doing so, my Spyder environment threw the following error when trying to display a simple df:

enter image description here

The code I ran was:

import pandas as pd

#column names
column_names = ["Time", "Currency", "Volatility expected", "Event", "Actual", "Forecast", "Previous"]

#create a dataframe including the column names
df = pd.DataFrame(columns=column_names)

It's important to mention that if I type df in the spyder console, I DO get the information stored in the df variable:

enter image description here

My only problem is that I can't see the details of that df when I click it in the Variable Explorer

CodePudding user response:

It seems that solucionado

  • Related