Skip to content

Commit 7528525

Browse files
committed
🐛 fix for df
1 parent 8dcb5c1 commit 7528525

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Core/Py.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,10 @@ function Base.show(io::IO, ::MIME"text/plain", o::Py)
201201
multilinePrefix *= " " * pyrepr(String, o.dtype)
202202
end
203203
if pyhasattr(o, "flags")
204-
if pytruth(o.flags["F_CONTIGUOUS"])
205-
multilinePrefix *= " (F order)"
204+
if haskey(o.flags, "F_CONTIGUOUS")
205+
if pytruth(o.flags["F_CONTIGUOUS"])
206+
multilinePrefix *= " (F order)"
207+
end
206208
end
207209
end
208210
end

0 commit comments

Comments
 (0)