Skip to content

Commit

Permalink
Changed np.NaN to np.nan for compatibility with NumPy 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
phista committed Nov 20, 2024
1 parent a591acc commit 4db089a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pdblp/pdblp.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ def _parse_ref(self, flds, keep_corrId=False, sent_events=1):
# that this is a not applicable field, thus set NaN
# see https://github.com/matthewgilbert/pdblp/issues/13
if fld not in fieldData:
datum = [ticker, fld, np.NaN]
datum = [ticker, fld, np.nan]
datum.extend(corrId)
data.append(datum)
else:
Expand Down Expand Up @@ -496,7 +496,7 @@ def _parse_bulkref(self, flds, keep_corrId=False, sent_events=1):
datum.extend(corrId)
data.append(datum)
else: # field is empty or NOT_APPLICABLE_TO_REF_DATA
datum = [ticker, fld, np.NaN, np.NaN, np.NaN]
datum = [ticker, fld, np.nan, np.nan, np.nan]
datum.extend(corrId)
data.append(datum)
return data
Expand Down

0 comments on commit 4db089a

Please sign in to comment.