Author : MD TAREQ HASSAN | Updated : 2023/07/20
Core components of pandas
- Series: essentially a column ((1-dimensional)
- DataFrame: a multi-dimensional table made up of a collection of Series (2-dimensional)
A Pandas Series is one dimensioned whereas a DataFrame is two dimensioned.
Series
- A Series is a one-dimensional array of indexed data
- Details: pandas series
Dataframe
- Pandas DataFrame is two-dimensional tabular data structure with labeled axes (rows and columns)
- A Data frame is a two-dimensional data structure, i.e., data is aligned in a tabular fashion in rows and columns
- DataFrame is similar to table (rows & columns)
- DataFrames allow you to store and manipulate tabular data in rows of observations and columns of variables
- DataFrames make manipulating your data easy, from selecting or replacing columns and indices to reshaping your data
- Features of DataFrame (Courtesy: tutorialspoint.com/python_pandas_dataframe)
- Size – Mutable
- Labeled axes (rows and columns)
- Potentially columns are of different types
- Can Perform Arithmetic operations on rows and columns
Pandas DataFrame is a two-dimensional tabular data structure with labeled axes (rows and columns). Similar to Excel sheet.
Details: Pandas Dataframe