Skip to content

Commit

Permalink
Adding fix for broadcasting NaN
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian-Pacula committed Feb 13, 2024
1 parent 7580502 commit 22b74fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data/util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function na2nan!(df::DataFrame)
if typeof(df[!,col])==Vector{Date}
nothing
else
df[ismissing.(df[!,col]), col] = NaN
df[ismissing.(df[!,col]), col] .= NaN
end
end
end
Expand Down

0 comments on commit 22b74fc

Please sign in to comment.