Problem 1

Import NumPy under the alias np.

In [1]:
import numpy as np

Problem 2

Import pandas under the alias pd.

In [2]:
import pandas as pd

Problem 3

Given the DataFrames df and other_df, perform a join operation that joins other_df onto df.

In [3]:
df = pd.DataFrame({'A': ['A0', 'A1', 'A2', 'A3', 'A4', 'A5']}, index = ['K0', 'K1', 'K2', 'K3', 'K4', 'K5'])
In [4]:
other_df = pd.DataFrame({'B': ['B0', 'B1', 'B2']}, index = ['K0', 'K1', 'K2'])
In [5]:
#Solution goes here
df.join(other_df)
Out[5]:
A B
K0 A0 B0
K1 A1 B1
K2 A2 B2
K3 A3 NaN
K4 A4 NaN
K5 A5 NaN