From the course: Python Data Visualization: Create Impactful Visuals, Animations, and Dashboards by Pearson
Unlock this course with a free trial
Join today to access over 25,200 courses taught by industry experts.
DataFrames and Series - Python Tutorial
From the course: Python Data Visualization: Create Impactful Visuals, Animations, and Dashboards by Pearson
DataFrames and Series
Welcome to Lesson 3.1, Data Frames and Series. In this short lesson, we're going to look at the basic data structures behind Pandas and what Pandas is built on, and how we can use them and understand them for our data analysis and to prepare the data for our visualizations. The two fundamental data structures that Panda relies on are series and data frames. you can think of a series as being essentially a vector of data. So every element of this array of this vector has to have the same data type, and the DataFrame is essentially a set of these series. So one way I like to think about it is that you can think of the DataFrame as being an Excel worksheet where you have a table. Each column of this table can have a different data type and correspond to some type of entity or some type of observation. But from one column to the next, the data types can change completely. You can have text, you can have integers, you can have floating points, you can have Boolean values, etc. Each column…