python module 'pandas' has no attribute 'plotting'

前端 未结 4 1306
难免孤独
难免孤独 2021-01-14 13:01

I am a beginner of Python. I follow the machine learning course of Intel. And I encounter some troubles in coding. I run the code below in Jupyter and it raises an Att

4条回答
  •  無奈伤痛
    2021-01-14 13:45

    If you want to execute pip command directly in Jupyter notebook, run the following:

    import sys
    !{sys.executable} -m pip install --upgrade pandas
    

    The above code makes sure that the package is installed for the same version of python installed with Jupyter notebook.

    In some situations the below command also works:

    !pip install --upgrade pandas
    

提交回复
热议问题