Course Content
Pandas First Steps
2. Reading Files in pandas
Pandas First Steps
DataFrame
Series is the simplest data type in pandas. Let's talk about a more complex data type: dataframe. This is a two-dimensional object that is more commonly used.
Think of a dataframe as a spreadsheet that can contain large amounts of data. Similar to a spreadsheet, a dataframe has an index and columns.
To create a dataframe object, use a dictionary
and the .DataFrame()
function. Let’s take a look at how the coding is done.
Task
Let's create an animal
dataframe using the dataset
data and the pd.DataFrame()
function. Let`s try it!
Everything was clear?
Section 1. Chapter 4