Pandas-installation
pandas is a Python library for data analysis and manipulation.
Install pandas using:
pip install pandas
Type this in your terminal and make sure that you have installed pip.
pip is a package installer for Python.
After that install the Jupyter or you can use your regular code editor:
pip install jupyterlab
Then go to the directory you want to work on:
cd desktop\pandas-demo
I am working on the pandas-demo file which is on the desktop, you can type the path of your file and continue.
After that just type:
jupyter notebook
on your terminal and you are good to go. Just make sure not to close your terminal or interrupt when you are working on a notebook.
Using pandas
To use the pandas you need to import the library just like in Numpy
import pandas as pd
df=pd.read_csv("path of file you want to read")
in this example, we are reading the CSV file.
Subscribe to my newsletter
Read articles from Karma dupdhen Sherpa directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
Karma dupdhen Sherpa
Karma dupdhen Sherpa
Aspiring Machine Learning Enthusiast and Frontend Web Developer, based in scenic Sikkim. Passionate about technology, nature, and music