0

whenever im using import pandas as pd it isn't working other than that anything like import math module is working. it shows "RESTART: shell".

i am unable to install any other IDE so i am working on python IDLE. even VS code is giving error. Please help me. I've tried re-installing python or pandas.

1
  • Please provide enough code so others can better understand or reproduce the problem. Commented Apr 21, 2024 at 7:53

1 Answer 1

0

If in IDLE you see something like

>>> import pandas

================================ RESTART: Shell ================================
>>> 

and no traceback such as

Traceback (most recent call last):
  File "<pyshell#21>", line 1, in <module>
    import pandas
ModuleNotFoundError: No module named 'pandas'

or one with another error, then almost certainly something called pandas or pandas.py was found on sys.path and execution was attempted with the result that the python subprocess doing the execution crashed. Perhaps you have a file called pandas.py in your current directory, or perhaps the installed pandas file has a messed-up byte.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.