A similar question like mine has been asked before, but unfortunately the answer was unable to help my problem. I have two sets of data columns: 1. the first is generated as follows:
t = pd.bdate_range(start='2016-05-16', end='2016-06-15')
This gives:
DatetimeIndex: DatetimeIndex(['2016-05-16', '2016-05-17', '2016-05-18', ...
The second is selected from an array:
v = myArray['Date']
This gives:
Series: 0 2016-05-17
1 2016-05-17
2 2016-05-17
This second output of data is a large series of about 40k entries. The reason why the dates don't change in this example is because there are epochs every two minutes therefore the date is the same until midnight. Since this array is currently from 2016-05-17 to 2016-06-17, I'd like to reduce this so that business days are only considered. I've tried:
h = pd.DataFrame(t)
u = pd.Series(t)
k = pd.DataFrame(v)
w = pd.Series(v)
Then I've tried various permutations of the isin
method:
w.isin(t)
w.isin(t.values)
k.isin(t.values)
I'm just not seeing any booleans at the beginning of the isin
check that are True. All seem to be false. Where am I going wrong? In order to get this to work, do I need to take much more care of the format of the arrays?