import numpy as np
import pandas as pd
from pandas import Series, DataFrame
data = {
"Country":["Belgium","India","Brazil"],
"Capital":["Brussels","New Delhi","Brasilia"],
"Population":[11190846,130317135,207847528]}
Series
s1 = pd.Series(data["Country"])
s1
0 Belgium
1 India
2 Brazil
dtype: object
s1.values
array([‘Belgium’, ‘India’, ‘Brazil’], dtype=object)
s1.index
RangeIndex(start=0, stop=3, step=1)
s1 = pd.Series(dat