Update exercises12.md

This commit is contained in:
Bogumił Kamiński 2023-05-06 21:45:45 +02:00 committed by GitHub
parent ae83ee9d03
commit 4f7ab0ac1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ in `target_df`.
This is short, but you need to have a good understanding of Julia types
and standar functions to properly write it:
```
Symbol.(target_df.id) == keys(edges_json)
Symbol.(target_df.id) == collect(keys(edges_json))
```
</details>
@ -115,7 +115,7 @@ function edgelist2graph(edgelist)
end
return g
end
target_df.egonet = edgelist2graph(values(edges_json))
target_df.egonet = edgelist2graph.(values(edges_json))
```
</details>