Signup/Sign In

How to install Pandas?

Pandas library can be installed without any additional dependency or it can be installed as part of a complete machine learning environment which brings along some other libraries too which are useful for machine learning.

So it's upto you, what you wish to do. If you are learning pandas for machine learning and will eventually move onto other machine learning libraries in python or you just want to explore Pandas.

Using Anaconda:

  • This is an all-powerful data-science package. Installing Anaconda gives you all the libraries and software you need data analysis(and machine learning) and auto-configures your PC/laptop for you.

  • All you need to do is head over to: Official Anaconda Website

  • Download the Python 3 version for your operating system and run it. An installer will open up and all you have to do is follow the installer instructions and complete the installation.

Using Pip:

  • If you have the latest version of Python 3 installed in your system already then you can get Pandas installed easily by using the pip command. But this will not include any other libraries like NumPy and MatPlotLib, which are included in the Anaconda installation.

  • If you just want to install Pandas, then go to your terminal/cmd and type the following command: pip install pandas

Using Colab:

  • This is by far the most recommended method for learning data science. There is no installation needed. All you have to do is head to: Google Colab

  • And create a new Python 3 notebook.

  • Ipython notebooks are an essential need for data science. They let you take full advantage of the interpreter capabilities of Python and run code snippets. This lets you keep track of your analysis and know immediately if there are any errors in your code.

  • Colab has pandas, Numpy and Matplotlib available from before-hand so you don't need to install them explicitly.

Conclusion

It's upto you how you install Pandas on your system because you know your requirements the best. If you do not want to install anything on your laptop and still want to learn pandas and practice coding, you can use our Python Practice Coding Terminal.



About the author:
I like writing about Python, and frameworks like Pandas, Numpy, Scikit, etc. I am still learning Python. I like sharing what I learn with others through my content.