Skip to content

Commit

Permalink
use for record field access
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Russo committed Jan 22, 2025
1 parent 5a45ca7 commit a275a07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/palimpzest/core/elements/records.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def as_df(records: list[DataRecord], fields_in_schema: bool = False) -> pd.DataF

fields = records[0].schema.field_names()
return pd.DataFrame([
{k: record.as_dict().get(k) for k in fields}
{k: record[k] for k in fields}
for record in records
])

Expand Down

0 comments on commit a275a07

Please sign in to comment.