Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Become a Python Data Analyst

You're reading from  Become a Python Data Analyst

Product type Book
Published in Aug 2018
Publisher Packt
ISBN-13 9781789531701
Pages 178 pages
Edition 1st Edition
Languages
Author (1):
Alvaro Fuentes Alvaro Fuentes
Profile icon Alvaro Fuentes
Toc

Operations and manipulations of pandas

There are a number of operation methods used to work in pandas. In this section of the chapter, we will look into some of the common operations that we will be doing in this book.

Inspection of data

The first thing that you will want to do when loading a DataFrame or creating a DataFrame from a file is to inspect the data that you just loaded. We have two methods for inspecting the data:

  • Head
  • Tail

The head method will show us the data of the first five rows:

As you can see in the preceding screenshot, we have the first five rows and 34 columns displayed on running the data.head() method:

To take a look at the last five rows of data, you use the tail method. The preceding screenshot...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime