8000 Changed np.NaN to np.nan for compatibility with NumPy 2.0 by phista · Pull Request #108 · matthewgilbert/pdblp · GitHub
[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed np.NaN to np.nan for compatibility with NumPy 2.0 #108

Merged
merged 1 commit into from
Dec 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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