Author : HASSAN MD TAREQ

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

Pandas Series overview Step 1

Pandas Series overview Step 2

Dataframe series

import pandas as pd

# dataframe
df = pd.read_csv("foo.csv")

type(df.Bar)    # pandas.core.series.Series