Author : MD TAREQ HASSAN
What is Series?
- A Series is a one-dimensional array of indexed data
- Pandas supports both integer and label-based indexing
- In a Dataframe:
- The first column is known as an index. And, each of the other columns corresponds to a Series
- Rows are also series
- Dataframe is basically series of series (2D array based on nd-array)
Overview
Dataframe series
import pandas as pd
# dataframe
df = pd.read_csv("foo.csv")
type(df.Bar) # pandas.core.series.Series