How To Load Csv File In Jupyter Notebook? Last Updated : 26 Apr, 2025 Summarize Comments Improve Suggest changes Share Like Article Like Report Loading a CSV file in Jupyter Notebook is an important step for data analysis and manipulation. Pandas library provides an easy way to read CSV files and work with tabular data in Python. Let's see how we can load csv file.Step 1: Install Pandas LibraryMake sure we have installed Pandas Library, if not then install it using the following command:!pip install pandasStep2: Import Pandas Firstly we need to import Pandas library. Python import pandas as pd Step3: Load the CSV File - Standard Pandas Operation (pd.read_csv)Use the pd.read_csv() function to load the CSV file. We need to provide the file path as an argument.If the file is in the same directory as our notebook we can just provide the filename. We are using zomato dataset which can be downloaded from here. Python df = pd.read_csv('zomato.csv') Step4: Check the DataAfter loading the CSV we can see first few rows of the DataFrame to ensure it loaded correctly: Python df.head() Output:Dataset RowsHandling Unicode Error In Jupyter NotebookWhen working with CSV files we might encounter a UnicodeDecodeError when file contains characters outside the standard ASCII character set. This issue occurs when the default encoding used by Python's read_csv() function typically UTF-8 may not match the encoding of the CSV file. Unicode error encountered while loading a CSV file is given below. We can see error message indicating the UnicodeError and line of code where the error occurred.ERRORHandling Unicode ErrorTo handle this error one common approach is to specify the correct encoding parameter when using the read_csv function. The encoding parameter we will use here is encoding='latin-1'.Other common encodings include:'utf-8''utf-16''cp1252' Python import pandas as pd df= pd.read_csv('/content/zomato.csv',encoding='latin-1') df.head() Output:OUTPUTWith these simple steps we can start exploring and analyzing data from CSV files in Jupyter Notebook. Comment More infoAdvertise with us Next Article How to Install Jupyter Notebook in Linux S saif_ali Follow Improve Article Tags : Python Python-pandas Jupyter-notebook Practice Tags : python Similar Reads How to upload a dataset in Jupyter Notebook? Jupyter Notebook is a web-based powerful IDE tool that helps with data analysis, visualization and narrative multi-media. Uploading a dataset is a very common task when working in the Jupyter Notebook. It is widely used by data analysts, data scientists, researchers and other developers to perform d 4 min read How to Install Jupyter Notebook in Linux Jupyter Notebook is a powerful, open-source tool for interactive computing, widely used for data analysis, machine learning, and scientific research. If you're using Linux and want to install Jupyter Notebook, then this guide is for you. Here, we're going to discuss seamless way to download and inst 3 min read How to Install Jupyter Notebook on MacOS Jupyter Notebook is a popular web-based interactive computing environment, widely used among data scientists and programmers. Working with Jupyter Notebook in MacOS helps perform various tasks including data cleaning and transformation, numerical simulation, statistical modelling, data visualization 5 min read How to Change the Theme in Jupyter Notebook In this article, we will cover how to change the theme in Jupyter Notebook. We will look at what is Jupyter notebook, the themes why we use them, and the different themes available in Jupyter Notebook we will look into examples along with the screenshots to get a better understanding. We will also s 3 min read How to Read CSV Files with NumPy? Reading CSV files is a common task when working with data in Python. In this article we will see how to read CSV files using Numpy's loadtxt() and genfromtxt() methods.1. Using NumPy loadtxt() methodThe loadtext() method is faster and simpler for reading CSV files. It is best when the file has consi 2 min read How to Download Kaggle Datasets into Jupyter Notebook? In this article, we will see how to Download Kaggle Datasets using Jupyter Notebook. Here, we are going to cover two different methods to start working with Jupyter Notebook. In the first method, we will use Kaggle API to download our dataset, and after that, we are good to go to use our dataset. In 2 min read Like