I am a beginner in Python using MacBook
I want to import pandas in my Python script and I'm typing the following command below:
import pandas as pd
which results in:
Error: -bash: import: command not found
Questions:
How can I enable import command. I used
#!/usr/bin/pythonand#!/usr/bin/env python3as well but nothing happens after hitting enter.I am importing
pandasin a folder under Documents. I hope that's OK. I can't put the path where my Python is installed, since it is in Applications folder.
importcommand from a Python prompt of directly from your bash command line?