Skip to content

Commit

Permalink
Simplify inplace column assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianSosic committed Dec 16, 2024
1 parent e9b5db0 commit 3bedbc3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions baybe/simulation/lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ def _look_up_targets_from_callable(
) -> None:
"""Look up target values by querying a callable."""
df_targets = lookup(queries)
for col in df_targets:
queries[col] = df_targets[col]
queries[df_targets.columns] = df_targets


def _look_up_targets_from_dataframe(
Expand Down

0 comments on commit 3bedbc3

Please sign in to comment.