From the course: Advanced Pandas

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Top functions using pandas

Top functions using pandas

From the course: Advanced Pandas

Start my 1-month free trial

Top functions using pandas

- [Instructor] As you use pandas, you'll find there are certain functions that prove their worth time and time again. In this lesson, we'll cover some of the most important functions that you can use to get more from your data. Pandas is very flexible in that you can import data from a wide variety of data sources, including CSVs, Excel files, JSONs, databases, parquet files, you name it. For this lesson, we'll use panda's read CSV function to import the iris dataset as a data frame. This is a common sample dataset for practicing data science. Import pandas as pd. Next we'll read the iris CSV into a data frame called iris. Data frames have an attribute called shape which tells us the dimensionality of our data. By calling iris.shape, we can see the number of rows and columns that our data frame has. There you go. We have 150 rows and five columns in our data. To preview our data, the head function will return…

Contents