We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9dfc0dd commit a3a2b97Copy full SHA for a3a2b97
src/Convert/numpy.jl
@@ -38,7 +38,7 @@ function pydatetime64(@nospecialize(x::T)) where T <: Period
38
T <: Union{Week, Day, Hour, Minute, Second, Millisecond, Microsecond} ||
39
error("Unsupported Period type: `$x::$T`. Consider using pytimedelta64 instead.")
40
args = map(Base.Fix1(isa, x), (Day, Second, Millisecond, Microsecond, Minute, Hour, Week))
41
- pydatetime64(x.value .* args...)
+ pydatetime64(map(Base.Fix1(*, x.value), args)...)
42
end
43
function pydatetime64(x::CompoundPeriod)
44
x = canonicalize(x)
0 commit comments