I'm not sure if this is a common problem with the environment Spyder
after manually updating a library from cmd
but in my case I updated the library Pandas
to 1.4.0
with cmd
, before that everything was working great but after doing that my environment Spyder
returned the following error trying to display a simple df
:
The code I ran was:
import pandas as pd
#nombres de columna
column_names = ["Time", "Currency", "Volatility expected", "Event", "Actual", "Forecast", "Previous"]
#crea una df con los nombres de columna
df = pd.DataFrame(columns=column_names)
It is important to mention that if I write df
to the Spyder console, I DO GET the information stored in the variable df
:
My only problem is that I can't see the details of that variable when I click on it in Explorador de Variables
Spyder.
Is there any solution that I can apply besides uninstalling Spyder and reinstalling it?
It seems that my problem will be solved at the end of this month .
Therefore, I had to downgrade the version of Pandas
1.3.5
usedpip install -Iv --user pandas==1.3.5
incmd
, andconda install pandas==1.3.5
in my environmentminiconda3
Once this is done, the variable explorer is fixed again: