How to do it...

Run the following code in a code cell; this will create three objects of Series type: 

series1 = pd.Series(['Alice', 'Bob', 'Joe', 'Mary'])
series2 = pd.Series(['Honda', 'Honda', 'Honda', 'Toyota', 'Ford'],
index=['CR-V', 'Civic', 'Accord', 'Highlander', 'F-150'])
series3 = pd.Series({'a':102, 'b':np.NaN, 'c':303}, dtype=np.float64)

After the objects are created, their contents can be checked by entering the variable that represents each object in a code cell by itself.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset