Skip to content

Commit

Permalink
Fix foreign key parsing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Bachibouzouk committed Jun 3, 2024
1 parent ef6ed5f commit c7ab4bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oemof/tabular/datapackage/building.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def infer_resource_foreign_keys(resource, sequences_profiles_to_resource):

for field in r.schema.fields:
if field.type == "string":
for potential_fk in data.dropna()[field.name].unique():
for potential_fk in data[field.name].dropna().unique():

if potential_fk in sequences_profiles_to_resource:
# this is actually a wrong format and should be
Expand Down

0 comments on commit c7ab4bf

Please sign in to comment.