I create a DataFrame pandas with DatetimeIndex as follows:
import datetime import pandas as pd import numpy as np import matplotlib.pyplot as plt
What gives
A weekend 2014-10-13 7 no 2014-10-14 6 no 2014-10-15 7 no 2014-10-16 9 no 2014-10-17 4 no 2014-10-18 6 yes 2014-10-19 4 yes 2014-10-20 7 no 2014-10-21 8 no 2014-10-22 8 no 2014-10-23 1 no 2014-10-24 4 no 2014-10-25 3 yes 2014-10-26 8 yes
I can easily build color A with pandas by doing:
df.plot() plt.show()
which displays the row of column A but does not contain the weekend column because it does not contain numeric data.

How can I put a βmarkerβ in every place of column A , where the weekend column is yes ?
source share