From the course: Python for Data Visualization
Unlock this course with a free trial
Join today to access over 24,800 courses taught by industry experts.
Basic operations - Python Tutorial
From the course: Python for Data Visualization
Basic operations
- [Narrator] After reading the contents of a file into your Pandas DataFrame, it's important to examine your data for a couple of reasons. First, you need to ensure that you've correctly loaded the data. Second, you have to see what kind of data you have. And third, you have to check the validity of your dataset, and I'll go through a couple ways we can do this. So one of the first things you do after loading your data is look at the head and the tail of your dataset. The method head selects the top N number of records from your dataset. The method tail selects the bottom N number of records from your dataset. This is really important to do as oftentimes your data format could change throughout your dataset. Another important thing to do is to check your column data types. You can do this by using the dtypes attribute. One thing we'll notice is that certain columns are ints, certain columns are floats, whereas others…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Introduction to pandas1m 30s
-
(Locked)
Create sample data3m 50s
-
(Locked)
Load sample data2m 17s
-
(Locked)
Basic operations1m 57s
-
(Locked)
Simplify with slicing4m 12s
-
(Locked)
Filter and clean data5m 39s
-
(Locked)
Rename and delete columns3m 16s
-
(Locked)
Aggregate functions2m 39s
-
(Locked)
Identify missing data3m 41s
-
(Locked)
Remove or fill in missing data5m 3s
-
(Locked)
Convert pandas DataFrames1m 15s
-
(Locked)
Export pandas DataFrames1m 28s
-
(Locked)
-
-
-