Skip to content

Commit

Permalink
Update networks.md
Browse files Browse the repository at this point in the history
  • Loading branch information
doctor-phil committed Nov 5, 2024
1 parent e3cfdaa commit 8d47f18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lectures/applications/networks.md
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ def truncate(f): # define a function that "rounds" a number to 0 if it is lower
return 1
# we already know that every stock is perfectly correlated with itself, so the ones on the diagonal are not really useful information. Let's get rid of them.
adj = corr.applymap(truncate) - np.identity(10)
adj = corr.map(truncate) - np.identity(10)
adj
```

Expand Down

0 comments on commit 8d47f18

Please sign in to comment.