I am using the Jupyter notebook with Python 3 selected. On the first line of a cell I am entering:
import pandas as pd
The error I get from
Simple solution : In a Notebook's cell type and execute the code:
import sys
!{sys.executable} -m pip install pandas
My pandas version was 0.20.3 I have updated to 0.25 using conda update pandas
. I have checked in Command Line Interface(CLI) its pd.__version__ '0.25.1'
.
In Jupyter notebook its showing '0.20.3'.
Please restart jupyter notebook. note is cache your pandas. or you can create a new notebook