Problem 1

Import the NumPy library under the alias np and import the pandas library under the alias pd.

In [1]:
import numpy as np
import pandas as pd

Problem 2

Turn the variable this_list into a pandas Series. Name the Series this_series.

In [2]:
this_list = ['a', 'b', 'c']
In [3]:
#Solution goes here
this_series = pd.Series(this_list)

Problem 3

Given the variable labels, overwirte the this_series variable you just created with a new version of this_series that has labels as its index.

In [4]:
labels = ['first', 'second', 'third']
In [5]:
#Solution goes here
this_series = pd.Series(this_list, index=labels)

Problem 4

Given the dictionary new_dict, turn it into a pandas Seris named new_series.

In [6]:
new_dict = {"brand": "Ford","model": "Mustang","year": 1964}
In [7]:
#Solution goes here
new_series = pd.Series(new_dict)