Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
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 Perform exploratory data analysis and gain insight into scientific computing using Python

Arrow left icon
Product type Paperback
Published in Aug 2018
Publisher Packt
ISBN-13 9781789531701
Length 178 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Alvaro Fuentes Alvaro Fuentes
Author Profile Icon Alvaro Fuentes
Alvaro Fuentes
Arrow right icon
View More author details
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 €18.99/month. Cancel anytime