Pandas DataFrame and Series Alignment Python Notes
This week we have a look at Data Alignment in Python In [1]: import numpy as np import pandas as pd from pandas import Series, DataFrame In [2]: #create series ser1 = Series([0,1,3], index=[‘A’,’B’,’C’]) ser1 Out[2]: A 0 B 1 C 3 dtype: int64 In [3]: ser2 = Series([3,4,5,6], index=[‘A’,’B’,’C’,’D’]) ser2 Out[3]: A 3 B…