File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -482,6 +482,7 @@ def compute_dict_like(
482
482
483
483
df = selected_obj
484
484
results , keys = [], []
485
+
485
486
for key , how in func .items ():
486
487
cols = df [key ]
487
488
Original file line number Diff line number Diff line change @@ -416,10 +416,11 @@ def apply(
416
416
result_blocks : list [Block ] = []
417
417
# fillna: Series/DataFrame is responsible for making sure value is aligned
418
418
419
+ aligned_args = {k : kwargs [k ] for k in align_keys }
420
+
419
421
for b in self .blocks :
420
- if align_keys :
421
- for k in align_keys :
422
- obj = kwargs [k ]
422
+ if aligned_args :
423
+ for k , obj in aligned_args .items ():
423
424
if isinstance (obj , (ABCSeries , ABCDataFrame )):
424
425
# The caller is responsible for ensuring that
425
426
# obj.axes[-1].equals(self.items)
You can’t perform that action at this time.
0 commit comments