python module 'pandas' has no attribute 'plotting'

前端 未结 4 1283
难免孤独
难免孤独 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:31

    Update your pandas version using following command

    pip install --upgrade pandas
    
    0 讨论(0)
  • 2021-01-14 13:39

    In your terminal type

    pip install plotting. 
    
    0 讨论(0)
  • 2021-01-14 13:42

    Updating pandas usually corrects this error. Hence update your version of pandas and the error should be solved. Additionally, your code snippet does work.

    0 讨论(0)
  • 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
    
    0 讨论(0)
提交回复
热议问题