How to read utf-8 characters using pandas in python Machine Learning course by Hackveda !

Deepti Bhatia
Sep 9, 2018 · 2 min read

→ So let us now have a brief what PANDAS are :

Pandas is a software library written for the python programming language for data manipulation and analysis .

It offers data structures and operations for manipulating numerical tables .

Pndas is a python module that makes data science easy and effective .

Pandas deals with the programming data structures

* Series

* DataFrame

a. Series : They are one -dimensional labelled array capable of holding data of any type (integer , string , float , python objects)

b. DataFrame : A DataFrame is a two dimensional data structure i.e data is aligned in a tabular fashion in rows and columns .

To implement pandas , firstly import them :

TO READ A CSV FILE :

  • Pandas help us to read any file just by copying the link from where it is downloaded ending with the file name with its extension .
  • Ex : data.csv
  • this will read all the data stored in that particular file .

To read utf-8 characters :

Encoding to use for UTF when reading/writing (ex. ‘utf-8’). List of Python standard encodings .

  • UTF-8 is a compromise character encoding that can be as compact as ASCII (if the file is just plain English text) but can also contain any unicode characters (with some increase in file size). UTF stands for Unicode Transformation Format. The ‘8meansit uses 8-bit blocks to represent a character.
  • if there are multiple sheets in excel we can read that sheet by mentioning it in our parameter . It will display the data that we have created in the same excel .

Deepti Bhatia

Written by

A B.Tech undergratuate from SRM University. Loves programming in python and machine learning.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade