Skip to content

Commit

Permalink
right->outer
Browse files Browse the repository at this point in the history
  • Loading branch information
dougbrn committed Apr 23, 2024
1 parent ced6af2 commit fe20c57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nested_pandas/nestedframe/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,11 +387,11 @@ def my_sum(col1, col2):
for layer in layers:
if layer == "base":
columns = [col[1] for col in requested_columns if col[0] == layer]
apply_df = apply_df.join(self[columns], how="right")
apply_df = apply_df.join(self[columns], how="outer")
else:
# TODO: It should be faster to pass these columns to to_lists, but its 20x slower
# columns = [col[1] for col in requested_columns if col[0] == layer]
apply_df = apply_df.join(self[layer].nest.to_lists(), how="right")
apply_df = apply_df.join(self[layer].nest.to_lists(), how="outer")

# Translates the requested columns into the scalars or arrays we pass to func.
def translate_cols(frame, layer, col):
Expand Down

0 comments on commit fe20c57

Please sign in to comment.