Skip to content

Commit

Permalink
Bug fix for context loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Innixma committed Oct 17, 2024
1 parent 98d3620 commit a1917f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tabrepo/loaders/_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def load_results(
f"{unique_metadata_join_column_vals['dataset'].value_counts()}")
df_metadata = df_metadata.drop(columns=["dataset"], errors="ignore")
else:
unique_metadata_join_column_vals = df_configs[[metadata_join_column]]
unique_metadata_join_column_vals = df_configs[[metadata_join_column]].drop_duplicates()
df_metadata = df_metadata.merge(unique_metadata_join_column_vals, on=[metadata_join_column])
metadata_column_order = ["dataset"] + [c for c in df_metadata.columns if c != "dataset"]
df_metadata = df_metadata[metadata_column_order] # make dataset first
Expand Down

0 comments on commit a1917f0

Please sign in to comment.