>>> df = pd.DataFrame(data) >>> df.values[::5] = np.nan