Skip to content

Commit 756e76d

Browse files
authored
Handle missing values (#204)
1 parent dde2a5b commit 756e76d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/datasets/graphs/ogbdataset.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ function read_ogb_metadata(fullname, dir = nothing)
157157
end
158158
df = read_csv(path_metadata)
159159
@assert fullname names(df)
160-
metadata = Dict{String, Any}(String(r[1]) => parse_pystring(r[2]) for r in eachrow(df[!,[names(df)[1], fullname]]))
160+
metadata = Dict{String, Any}(String(r[1]) => r[2] isa AbstractString ? parse_pystring(r[2]) : r[2] for r in eachrow(df[!,[names(df)[1], fullname]]))
161161
# edge cases for additional node and edge files
162162
for additional_key in ["additional edge files", "additional node files"]
163163
if !isnothing(metadata[additional_key])

0 commit comments

Comments
 (0)