From 35d839176db8b04cc4f9f50b09df7cab58dbb6d4 Mon Sep 17 00:00:00 2001 From: pfackeldey Date: Fri, 13 Dec 2024 20:30:28 -0500 Subject: [PATCH] fix placeholder arrays in record repr --- src/awkward/prettyprint.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/awkward/prettyprint.py b/src/awkward/prettyprint.py index fb2b8199f7..b4075cf0d6 100644 --- a/src/awkward/prettyprint.py +++ b/src/awkward/prettyprint.py @@ -93,6 +93,9 @@ def get_at(data: Content, index: int): def get_field(data: Content, field: str): + if isinstance(data._layout, ak.record.Record): + if data._layout._array.content(field)._is_getitem_at_placeholder(): + return PlaceholderValue() out = data._layout._getitem_field(field) if isinstance(out, ak.contents.NumpyArray): array_param = out.parameter("__array__")