Question: A Quick Introduction to Pandas Dataframes Pandas is the main data structure and manipulation library of python. We will make extensive use of pandas during

A Quick Introduction to Pandas Dataframes
Pandas is the main data structure and manipulation library of python. We will make extensive use of pandas during the course. You can think of a pandas dataframe as an excel spreadsheet, in which each row is associated to an observation and each column is representing a different variable (characteristic). For example, assume we want to store information about the students of this classroom. We might want to record the name, age, and gpa of each student. Let us create a dataframe, and store the data of a few students. Note: Do not forget to import the library before using it!
Step 1: Create a dataframe with 8 students, with the following:
names : A, B, C, D, E, F, G, H
ages: 21,22,23,24,25,26,27,28
g: 4.0,4.5,5.0,5.5,6.0,6.5,7.0,7.5
Step 2: Get a description of the dataframe using describe().
Step 3: Create a scatter plot to describe the relation between age and gpa of students. Use plot. and press 'TAB' to get a list of plots.
 A Quick Introduction to Pandas Dataframes Pandas is the main data

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!