In Python, pandas is an open-source library, primarily used for tabular data. It is used to process, manipulate, and analyze the data stored in tables, spreadsheets, or databases.
The pandas library, being an extensively used library in Python, can be installed using any of the following ways:
Anaconda
Miniconda
PyPI
Installing pandas is pretty simple if we use a distribution like Anaconda. Follow the steps below to install pandas:
Open the Anaconda Navigator.
Go to "Environments" from the left menu.
We will see a preconfigured "base (root)" environment.
Selecting the environment lists all the installed packages on the right side.
Search for "pandas" in the search field and check if it is installed. If not, then select the "Not installed" option. Here, we'll see the "pandas" package, check the box, and click the "Apply" button at the bottom of the page.
An "Install Packages" pop-up window will appear that'll install the package. If it shows any message related to dependencies, apply the changes. Once the package is installed, Click the "Home" tab and launch VS Code. Open the terminal in VS Code and execute the pip show pandas
command. It'll show the details of the pandas.
Note: Make sure you have
pip
installed on your system.
PyPI, Python Packages Index, is a repository for Python packages. Python developers create libraries/ packages and publish them on this platform, and users install them according to their needs.
Follow the simple steps below to install pandas in VSCode:
Open terminal in VSCode.
Execute pip install pandas
command to install pandas. The installation will take some time.
Once pandas is installed, execute pip show pandas
command to check the details.
Below we have a terminal, and we have already installed Python and pip
so we can execute pip
commands to install pandas.
After the execution of the pip show pandas
command, we will see the details of the pandas library.
Free Resources