Components of pandas
The two main components of pandas are DataFrame
and Series
.
A DataFrame
represents a two-dimensional table. It consists of a collection of Series
.
A Series
represents one-dimensional column (actually, a 1D NumPy array).
Therefore, a DataFrame
can be seen as a way of representing data in rectangular grids.
Each row in the table represents the values of an instance, and each row has an Index
.
The columns are ‘connected’ by the Index
Each column is a vector containing data for a speific variable.
The columns are identified by the column names.