我有一个系列(business_day),它是通过isin
生成的,用于创建dtype系列:bool:
Series: 0 True
1 True
2 True
...
563 False
566 False
Name: Date, dtpye: bool
然后我尝试使用以下方法更新另一个数组:
myArray.ix[business_day]
和
myArray.loc[business_day]
,其中
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
目标是仅修改myArray,其中行是" True"根据business_day系列。但是,上面使用的代码没有任何效果。我在哪里错了?
答案 0 :(得分:1)
分配结果,因为它不会修改原始web.config
:
DataFrame