I am working on Pycharm with Python 3.10, with matplotlib and pandas packages installed, and when I run :
import pandas as pd
import numpy as np
ts = pd.Series(np.random.randn(1000), index = pd.date_range('1/1/2000', periods = 1000))
ts = ts.cumsum()
ts.plot()
I get the error ImportError: matplotlib is required for plotting when the default backend "matplotlib" is selected.
I tried to uninstall and reinstall matplotlib after pandas, I tried to run conda install -c anaconda pandas-profiling
, and many things I found online to try solving this.
Thanks a lot for your answers