Skip to content
This repository has been archived by the owner on Jun 15, 2024. It is now read-only.

Commit

Permalink
fixed the error for associate column within the material sheet. (#44)
Browse files Browse the repository at this point in the history
Essentially we are checking if the column is empty within pandas and if it is, then we use None instead of NaN because JSON can handle None and not NaN
  • Loading branch information
nh916 authored Nov 14, 2022
1 parent deafc64 commit b340f54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def _get_cell_info(self, index, row, column):
"type": nested_types[-1],
"unique_key": nested_keys[-1].strip("*"),
"key": self._clean_key(nested_keys[-1]),
"value": row[column],
"value": row[column] if not pd.isna(row[column]) else None,
"unit": column[2] if "Unnamed" not in column[2] else None,
}

Expand Down

0 comments on commit b340f54

Please sign in to comment.