In Mac terminal (we can launch Mac Terminal by searching in spotlight search Command + space) Now, use the command:
pip3 install pandas
As I'm using Python Version 3 I need to use pip3 install pandas.
If you are using python version 2 than use Command:
pip install pandas
Make sure pip is already installed in the device