From 57e576e34cb332e3c233ba97bce0f4d6c4f60481 Mon Sep 17 00:00:00 2001 From: David Gardner Date: Thu, 16 May 2024 08:59:03 -0700 Subject: [PATCH] Fix inconsistent usage of 'results' and 'records' --- docs/cudf/source/user_guide/io/read-json.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/cudf/source/user_guide/io/read-json.md b/docs/cudf/source/user_guide/io/read-json.md index 7049c75d1c1..d2bb021a5b5 100644 --- a/docs/cudf/source/user_guide/io/read-json.md +++ b/docs/cudf/source/user_guide/io/read-json.md @@ -218,11 +218,11 @@ reads a JSON object as a single line and then extracts the # first read the JSON object with line=True >>> df = cudf.read_json(j, lines=True) >>> df - metadata records + metadata results 0 {'vehicle': 'car'} [{'id': 0, 'distance': 1.2}, {'id': 1, 'distan... -# then explode the 'records' column ->>> df = df['records'].explode().struct.explode() +# then explode the 'results' column +>>> df = df['results'].explode().struct.explode() >>> df id distance 0 0 1.2