Skip to content

Commit 77698e1

Browse files
author
Christopher Doris
committed
dont do narrowing
1 parent 723f5b3 commit 77698e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pywrap/PyPandasDataFrame.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ function _columns(df, columnnames, columntypes)
8686
ts = pybuiltins.set(pybuiltins.map(pybuiltins.type, pycolumn))
8787
Ts = Type[pyconvert_preferred_type(t) for t in ts]
8888
T = isempty(Ts) ? Any : reduce(promote_type, Ts)
89-
column = pyconvert(AbstractVector{<:T}, pycolumn)
89+
column = pyconvert(AbstractVector{T}, pycolumn)
9090
# if all items are either NaN or not Float64, convert NaN to missing
9191
if T != Float64 && Float64 in Ts && !any(x isa Float64 && !isnan(x) for x in column)
9292
Ts = Type[T for T in Ts if T != Float64]
9393
push!(Ts, Missing)
9494
T = reduce(promote_type, Ts)
95-
column = pyconvert(AbstractVector{<:T}, pycolumn)
95+
column = pyconvert(AbstractVector{T}, pycolumn)
9696
end
9797
end
9898
end

0 commit comments

Comments
 (0)