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.

Intro to DataFrames using pandas

Intro to DataFrames using pandas

From the course: Advanced Pandas

Start my 1-month free trial

Intro to DataFrames using pandas

- [Instructor] The most fundamental aspect of Pandas is the DataFrame. This is how your data is stored, and it's a tabular format with rows and columns as you'd find in a spreadsheet or a database table. So before we dive into some more advanced Pandas topics, let's review the DataFrame concept. After importing Pandas as PD, we're going to create a dictionary called scores. Now a dictionary is a Python structure which stores key value pairs. In this dictionary, the keys are name, city, and score, and the values are lists, as denoted by the square brackets which are mapped to their corresponding key. After running this cell, we're going to turn this dictionary into a Pandas DataFrame using the DataFrame function. Note the capitalization of the F in DataFrame. Great. Now let's see our data. Here you can see a table with name, city, and score as column headers, and three rows of corresponding data. Each column is a series.…

Contents