Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to Import Pandas in a VS Code Jupyter Notebook

I’m fairly new to coding, and all my previous experience has been with Jupyter Notebook, but I’ve been asked to switch to VS Code. I’ve installed the Jupyter and Python extensions, and I’m currently working in an ipynb file, where I can write and run regular code normally. However, when I try import pandas as pd, I get a ModuleNotFoundError saying that there’s no module named ‘pandas.’ I tried pip install pandas, both in the VS Code terminal and the regular Mac terminal, but I’m still getting the error. I’ve also installed anaconda on my computer if that’s relevant. Sorry, I’m sure it’s a very simple error but I’m not familiar enough with this to understand how to import Pandas or other libraries. Any help is appreciated, and I’ll try to respond promptly. Thanks!

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Click on the kernel version in the upper right corner, and then select the kernel that installed pandas

enter image description here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading