Skip to content

Commit

Permalink
Update deprecated np.NaN
Browse files Browse the repository at this point in the history
  • Loading branch information
pdelboca committed Aug 23, 2024
1 parent 0fd9604 commit 2e0bad6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frictionless/formats/pandas/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def write_row_stream(self, source: TableResource):
# http://pandas.pydata.org/pandas-docs/stable/gotchas.html#support-for-integer-na
if value is None and field.type in ("number", "integer"):
fixed_types[field.name] = "number"
value = np.NaN
value = np.nan
if field.name in source.schema.primary_key:
index_values.append(value)
else:
Expand Down

0 comments on commit 2e0bad6

Please sign in to comment.