I have a date array dateref and want to get the values of pandas dataframe data filtered by dateref (only the values for the dates included in dateref) :
I tried this, but it does not work:
df: Out[36]: rec.array([ (datetime.date(2007, 4, 10), 105),
df[df.date== dateref ]
data.date : array of date
data.value : array of values
EDIT: this one returns error
data[data.date.isin(dateref)]
AttributeError: 'numpy.ndarray' object has no attribute 'isin'