Jupyter python3 notebook cannot recognize pandas

后端 未结 14 956
终归单人心
终归单人心 2020-12-14 15:56

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

相关标签:
14条回答
  • 2020-12-14 16:39

    Simple solution : In a Notebook's cell type and execute the code:

    import sys  
    !{sys.executable} -m pip install pandas
    
    0 讨论(0)
  • 2020-12-14 16:43

    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

    0 讨论(0)
提交回复
热议问题