I have a series (business_day) which was generated via isin in order to create the series with dtype: bool:
Series: 0 True
1 True
2 True
...
563 False
566 False
Name: Date, dtpye: bool
I then tried to update another array by using:
myArray.ix[business_day]
and
myArray.loc[business_day]
where
myArray:
DataFrame: Date Epoch Value
0 2016-05-17 2016-05-17 11:30:00 12345
1 2016-05-17 2016-05-17 11:31:00 6789.7
2 2016-05-17 2016-05-17 11:32:00 123.45
The aim is to modify only myArray whereby the lines are "True" as per the business_day series. However the code used above has no effect. Where am I going wrong here?
myArray.loc[business_day]to some variables as it doesn't workin_place)? if you printmyArray.loc[business_day], does it show the same number of rows as before?