In [1]: import pandas as pd In [2]: import numpy as np In [3]: import matplotlib.pyplot as plt
In [4]: s = pd.Series([1,3,5,np.nan,6,8]) In [5]: s Out[5]: 0 1.0 1 3.0 2 5.0 3 NaN 4 6.0 5 8.0 dtype: float64