from nbreversible import code import pandas as pd import numpy as np import seaborn as sns # %matplotlib inline xs = np.arange(1, 10) ys = np.arange(1, 10).reshape(9, 1) m = xs * ys df = pd.DataFrame(m) df 0 1 2 3 4 5 6 7 8 0 1 2 3 4 5 6 7 8 9 1 2 4 6 8 10 12 14 16 18 2 3 6 9 12 15 18 21 24 27 3 4 8 12 16 20 24 28 32 36 4 5 10 15 20 25 30 35 40 45 5 6 12 18 24 30 36 42 48 54 6 7 14 21 28 35 42 49