Shouldn't you use a series instead of a dataFrame for the y parameter?
y = pd.Series([0, 1, 0, 1, 0, 1])